Simple Question (Direct)
Simple Question
Q4409469
P512
Q3412758
USER
What degree or diploma was awarded to Andrey Sakharov ?
(Q4409469,P512,c(Q3412758))
action filter_type
action find
entity Q4409469
relation P512
type Q3412758
['Q4409469', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?d WHERE { resource:Q4409469 property:P512 ?d . ?d rdf:type ontology:Q3412758 }
Andrey Sakharov
action filter_type
action find
entity Andrey Sakharov
relation academic degree
type qualification
['Andrey Sakharov', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?d WHERE { resource:Andrey_Sakharov property:academic_degree ?d . ?d rdf:type ontology:qualification }
[]
qualification
Q12101789
SYSTEM
Doktor Nauk in History
Q12101789
(Q4409469,P512,c(Q3412758))
action filter_type
action find
entity Q4409469
relation P512
type Q3412758
[ANSWER] was awarded to Andrey Sakharov
['Q4409469', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?d WHERE { resource:Q4409469 property:P512 ?d . ?d rdf:type ontology:Q3412758 }
Doktor Nauk in History
Doktor Nauk in History was awarded to Andrey Sakharov
Doktor Nauk in History
action filter_type
action find
entity Andrey Sakharov
relation academic degree
type qualification
['Andrey Sakharov', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?d WHERE { resource:Andrey_Sakharov property:academic_degree ?d . ?d rdf:type ontology:qualification }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4409469
P21
Q290
USER
What is the sex of that person ?
(Q12101789,P21,c(Q290))
action filter_type
action find
entity Q4409469
relation P21
type Q290
['Q12101789', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q4409469 property:P21 ?e . ?e rdf:type ontology:Q290 }
Andrey Sakharov
action filter_type
action find
entity Andrey Sakharov
relation gender
type sex
['Doktor Nauk in History', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Andrey_Sakharov property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q12101789,P21,c(Q290))
action filter_type
action find
entity Q4409469
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q12101789', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q4409469 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Andrey Sakharov
relation gender
type sex
['Doktor Nauk in History', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Andrey_Sakharov property:gender ?e . ?e rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2279042 Q4409469
P27
Q15617994
USER
Which administrative territories are Andrey Sakharov or Ondřej Starosta an inhabitant of ?
OR((Q4409469,P27,c(Q15617994)), (Q2279042,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4409469
relation P27
action find
entity Q2279042
relation P27
type Q15617994
{'OR': [['Q4409469', 'P27', {'concept': 'Q15617994'}], ['Q2279042', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?a ) { ( resource:Q4409469 ) ( resource:Q2279042 ) } . ?a property:P27 ?f } . ?f rdf:type ontology:Q15617994 }
Ondřej Starosta Andrey Sakharov
action filter_type
action union
action find
entity Andrey Sakharov
relation country of citizenship
action find
entity Ondřej Starosta
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Andrey Sakharov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ondřej Starosta', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?a ) { ( resource:Andrey_Sakharov ) ( resource:Ondřej_Starosta ) } . ?a property:country_of_citizenship ?f } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213 Q159
SYSTEM
Czech Republic, Russia
Q213 Q159
OR((Q4409469,P27,c(Q15617994)), (Q2279042,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4409469
relation P27
action find
entity Q2279042
relation P27
type Q15617994
[ANSWERS] are Andrey Sakharov or Ondřej Starosta an inhabitant of
{'OR': [['Q4409469', 'P27', {'concept': 'Q15617994'}], ['Q2279042', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?a ) { ( resource:Q4409469 ) ( resource:Q2279042 ) } . ?a property:P27 ?f } . ?f rdf:type ontology:Q15617994 }
Czech Republic Russia
Czech Republic and Russia are Andrey Sakharov or Ondřej Starosta an inhabitant of
Czech Republic Russia
action filter_type
action union
action find
entity Andrey Sakharov
relation country of citizenship
action find
entity Ondřej Starosta
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Andrey Sakharov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ondřej Starosta', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?a ) { ( resource:Andrey_Sakharov ) ( resource:Ondřej_Starosta ) } . ?a property:country_of_citizenship ?f } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q691
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with around the same number of administrative territories as Papua New Guinea ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?z ) WHERE { ?p rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 . ?p property:P530 ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Q691 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?z = ?n ) }
Papua New Guinea
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?z ) WHERE { ?p rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?z = ?n ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with around the same number of administrative territories as Papua New Guinea
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?z ) WHERE { ?p rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 . ?p property:P530 ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Q691 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?z = ?n ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relations with around the same number of administrative territories as Papua New Guinea
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?z ) WHERE { ?p rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?z = ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q40
P530
Q15617994 Q1048835
USER
And what about Austria?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?p ) WHERE { ?b property:P530 ?x . ?b rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?p = ?n ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Q40 property:P530 ?r . ?r rdf:type ontology:Q1048835 } } }
Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?p ) WHERE { ?b property:diplomatic_relation ?x . ?b rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?p = ?n ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Austria property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?p ) WHERE { ?b property:P530 ?x . ?b rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?p = ?n ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Q40 property:P530 ?r . ?r rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?p ) WHERE { ?b property:diplomatic_relation ?x . ?b rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?p = ?n ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Austria property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with min number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 . ?z property:P530 ?q } GROUP BY ?z } } . FILTER ( ?u = ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { ?g property:P530 ?n . ?g rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1048835 } GROUP BY ?g } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?q } GROUP BY ?z } } . FILTER ( ?u = ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { ?g property:diplomatic_relation ?n . ?g rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?g } }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWERS] have diplomatic relations with min number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 . ?z property:P530 ?q } GROUP BY ?z } } . FILTER ( ?u = ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { ?g property:P530 ?n . ?g rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1048835 } GROUP BY ?g } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have diplomatic relations with min number of political territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?q } GROUP BY ?z } } . FILTER ( ?u = ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { ?g property:diplomatic_relation ?n . ?g rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q20631349 Q213
P47 P19
Q56061
USER
Which administrative territories are adjacent to Czech Republic or were Lily Knibbeler born ?
OR((Q213,P47,c(Q56061)), (Q20631349,P19,c(Q56061)))
action filter_type
action union
action find
entity Q213
relation P47
action find
entity Q20631349
relation P19
type Q56061
{'OR': [['Q213', 'P47', {'concept': 'Q56061'}], ['Q20631349', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q213 property:P47 ?a } UNION { resource:Q20631349 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Lily Knibbeler Czech Republic
action filter_type
action union
action find
entity Czech Republic
relation shares border with
action find
entity Lily Knibbeler
relation place of birth
type administrative territorial entity
{'OR': [['Czech Republic', 'shares border with', {'concept': 'administrative territorial entity'}], ['Lily Knibbeler', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Czech_Republic property:shares_border_with ?a } UNION { resource:Lily_Knibbeler property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q9945 Q458
SYSTEM
Laren, European Union
Q9945 Q458
OR((Q213,P47,c(Q56061)), (Q20631349,P19,c(Q56061)))
action filter_type
action union
action find
entity Q213
relation P47
action find
entity Q20631349
relation P19
type Q56061
[ANSWERS] are adjacent to Czech Republic or were Lily Knibbeler born
{'OR': [['Q213', 'P47', {'concept': 'Q56061'}], ['Q20631349', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q213 property:P47 ?a } UNION { resource:Q20631349 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Laren European Union
Laren and European Union are adjacent to Czech Republic or were Lily Knibbeler born
Laren European Union
action filter_type
action union
action find
entity Czech Republic
relation shares border with
action find
entity Lily Knibbeler
relation place of birth
type administrative territorial entity
{'OR': [['Czech Republic', 'shares border with', {'concept': 'administrative territorial entity'}], ['Lily Knibbeler', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Czech_Republic property:shares_border_with ?a } UNION { resource:Lily_Knibbeler property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q17 Q40
P27
Q502895
USER
Which people are a native of Austria and Japan ?
AND((c(Q502895),P27,Q40), (c(Q502895),P27,Q17))
action filter_type
action intersection
action find_reverse
entity Q40
relation P27
action find_reverse
entity Q17
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q40'], [{'concept': 'Q502895'}, 'P27', 'Q17']]}
SELECT DISTINCT ?k WHERE { ?k property:P27 resource:Q40 . ?k property:P27 resource:Q17 . ?k rdf:type ontology:Q502895 }
Japan Austria
action filter_type
action intersection
action find_reverse
entity Austria
relation country of citizenship
action find_reverse
entity Japan
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Austria'], [{'concept': 'common name'}, 'country of citizenship', 'Japan']]}
SELECT DISTINCT ?k WHERE { ?k property:country_of_citizenship resource:Austria . ?k property:country_of_citizenship resource:Japan . ?k rdf:type ontology:common_name }
[]
common name
Q11576034 Q112862
SYSTEM
Masahiko Tanaka, Mitsuko Aoyama
Q11576034 Q112862
AND((c(Q502895),P27,Q40), (c(Q502895),P27,Q17))
action filter_type
action intersection
action find_reverse
entity Q40
relation P27
action find_reverse
entity Q17
relation P27
type Q502895
[ANSWERS] are a native of Austria and Japan
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q40'], [{'concept': 'Q502895'}, 'P27', 'Q17']]}
SELECT DISTINCT ?k WHERE { ?k property:P27 resource:Q40 . ?k property:P27 resource:Q17 . ?k rdf:type ontology:Q502895 }
Masahiko Tanaka Mitsuko Aoyama
Masahiko Tanaka and Mitsuko Aoyama are a native of Austria and Japan
Masahiko Tanaka Mitsuko Aoyama
action filter_type
action intersection
action find_reverse
entity Austria
relation country of citizenship
action find_reverse
entity Japan
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Austria'], [{'concept': 'common name'}, 'country of citizenship', 'Japan']]}
SELECT DISTINCT ?k WHERE { ?k property:country_of_citizenship resource:Austria . ?k property:country_of_citizenship resource:Japan . ?k rdf:type ontology:common_name }
[]