Simple Question (Direct)
Simple Question
Q2827089
P21
Q290
USER
What is the sex of Agostino Chiodo ?
(Q2827089,P21,c(Q290))
action filter_type
action find
entity Q2827089
relation P21
type Q290
['Q2827089', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q2827089 property:P21 ?z . ?z rdf:type ontology:Q290 }
Agostino Chiodo
action filter_type
action find
entity Agostino Chiodo
relation gender
type sex
['Agostino Chiodo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Agostino_Chiodo property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2827089,P21,c(Q290))
action filter_type
action find
entity Q2827089
relation P21
type Q290
The sex of Agostino Chiodo is a [ANSWER]
['Q2827089', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q2827089 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
The sex of Agostino Chiodo is a male
male
action filter_type
action find
entity Agostino Chiodo
relation gender
type sex
['Agostino Chiodo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Agostino_Chiodo property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2827089
P6
Q35798
USER
Which executive branch is Agostino Chiodo the head of the goverment of ?
(c(Q35798),P6,Q2827089)
action filter_type
action find_reverse
entity Q2827089
relation P6
type Q35798
[{'concept': 'Q35798'}, 'P6', 'Q2827089']
SELECT DISTINCT ?i WHERE { ?i property:P6 resource:Q2827089 . ?i rdf:type ontology:Q35798 }
Agostino Chiodo
action filter_type
action find_reverse
entity Agostino Chiodo
relation head of government
type executive branch
[{'concept': 'executive branch'}, 'head of government', 'Agostino Chiodo']
SELECT DISTINCT ?i WHERE { ?i property:head_of_government resource:Agostino_Chiodo . ?i rdf:type ontology:executive_branch }
[]
executive branch
Q3773816
SYSTEM
Chiodo Cabinet
Q3773816
(c(Q35798),P6,Q2827089)
action filter_type
action find_reverse
entity Q2827089
relation P6
type Q35798
The [ANSWER] is Agostino Chiodo the head of the goverment of
[{'concept': 'Q35798'}, 'P6', 'Q2827089']
SELECT DISTINCT ?i WHERE { ?i property:P6 resource:Q2827089 . ?i rdf:type ontology:Q35798 }
Chiodo Cabinet
The Chiodo Cabinet is Agostino Chiodo the head of the goverment of
Chiodo Cabinet
action filter_type
action find_reverse
entity Agostino Chiodo
relation head of government
type executive branch
[{'concept': 'executive branch'}, 'head of government', 'Agostino Chiodo']
SELECT DISTINCT ?i WHERE { ?i property:head_of_government resource:Agostino_Chiodo . ?i rdf:type ontology:executive_branch }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3773816 Q2460984 Q181261
P35
Q502895
USER
Is that executive branch headed by Taco Seinstra and Charles Albert of Sardinia ?
(Q3773816,P35,Q2460984) (Q3773816,P35,Q181261)
action is_in
entity Q3773816
action intersection
action find_reverse
entity Q2460984
relation P35
action find_reverse
entity Q181261
relation P35
['Q3773816', 'P35', 'Q2460984'] ['Q3773816', 'P35', 'Q181261']
ASK WHERE { resource:Q3773816 property:P35 resource:Q2460984 . resource:Q3773816 property:P35 resource:Q181261 }
Chiodo Cabinet Taco Seinstra Charles Albert of Sardinia
action is_in
entity Chiodo Cabinet
action intersection
action find_reverse
entity Taco Seinstra
relation head of state
action find_reverse
entity Charles Albert of Sardinia
relation head of state
['Chiodo Cabinet', 'head of state', 'Taco Seinstra'] ['Chiodo Cabinet', 'head of state', 'Charles Albert of Sardinia']
ASK WHERE { resource:Chiodo_Cabinet property:head_of_state resource:Taco_Seinstra . resource:Chiodo_Cabinet property:head_of_state resource:Charles_Albert_of_Sardinia }
[]
common name
SYSTEM
NO and YES respectively
(Q3773816,P35,Q2460984) (Q3773816,P35,Q181261)
action is_in
entity Q3773816
action intersection
action find_reverse
entity Q2460984
relation P35
action find_reverse
entity Q181261
relation P35
[ANSWER]
['Q3773816', 'P35', 'Q2460984'] ['Q3773816', 'P35', 'Q181261']
ASK WHERE { resource:Q3773816 property:P35 resource:Q2460984 . resource:Q3773816 property:P35 resource:Q181261 }
NO and YES respectively
action is_in
entity Chiodo Cabinet
action intersection
action find_reverse
entity Taco Seinstra
relation head of state
action find_reverse
entity Charles Albert of Sardinia
relation head of state
['Chiodo Cabinet', 'head of state', 'Taco Seinstra'] ['Chiodo Cabinet', 'head of state', 'Charles Albert of Sardinia']
ASK WHERE { resource:Chiodo_Cabinet property:head_of_state resource:Taco_Seinstra . resource:Chiodo_Cabinet property:head_of_state resource:Charles_Albert_of_Sardinia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2827089 Q495 Q18493188
P20
Q56061
USER
Did Agostino Chiodo die in Turin and Montesanto ?
(Q2827089,P20,Q495) (Q2827089,P20,Q18493188)
action is_in
entity Q2827089
action intersection
action find_reverse
entity Q495
relation P20
action find_reverse
entity Q18493188
relation P20
['Q2827089', 'P20', 'Q495'] ['Q2827089', 'P20', 'Q18493188']
ASK WHERE { resource:Q2827089 property:P20 resource:Q495 . resource:Q2827089 property:P20 resource:Q18493188 }
Agostino Chiodo Turin Montesanto
action is_in
entity Agostino Chiodo
action intersection
action find_reverse
entity Turin
relation place of death
action find_reverse
entity Montesanto
relation place of death
['Agostino Chiodo', 'place of death', 'Turin'] ['Agostino Chiodo', 'place of death', 'Montesanto']
ASK WHERE { resource:Agostino_Chiodo property:place_of_death resource:Turin . resource:Agostino_Chiodo property:place_of_death resource:Montesanto }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q2827089,P20,Q495) (Q2827089,P20,Q18493188)
action is_in
entity Q2827089
action intersection
action find_reverse
entity Q495
relation P20
action find_reverse
entity Q18493188
relation P20
[ANSWER]
['Q2827089', 'P20', 'Q495'] ['Q2827089', 'P20', 'Q18493188']
ASK WHERE { resource:Q2827089 property:P20 resource:Q495 . resource:Q2827089 property:P20 resource:Q18493188 }
YES and NO respectively
action is_in
entity Agostino Chiodo
action intersection
action find_reverse
entity Turin
relation place of death
action find_reverse
entity Montesanto
relation place of death
['Agostino Chiodo', 'place of death', 'Turin'] ['Agostino Chiodo', 'place of death', 'Montesanto']
ASK WHERE { resource:Agostino_Chiodo property:place_of_death resource:Turin . resource:Agostino_Chiodo property:place_of_death resource:Montesanto }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q1076105 Q35798
USER
How many general elections are the underlying cause of atleast 1 executive branch ?
(c(Q35798),P828,c(Q1076105))
action count
action atleast
action find_reverse_tuple_counts
relation P828
type Q1076105
type Q35798
value 1
[{'concept': 'Q35798'}, 'P828', {'concept': 'Q1076105'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:P828 ?w . ?w rdf:type ontology:Q1076105 . ?l rdf:type ontology:Q35798 } GROUP BY ?w } . FILTER ( ?e >= 1 ) }
action count
action atleast
action find_reverse_tuple_counts
relation has cause
type general election
type executive branch
value 1
[{'concept': 'executive branch'}, 'has cause', {'concept': 'general election'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:has_cause ?w . ?w rdf:type ontology:general_election . ?l rdf:type ontology:executive_branch } GROUP BY ?w } . FILTER ( ?e >= 1 ) }
[]
general election executive branch
SYSTEM
4
Q683800 Q953141 Q7437890 Q1862416
(c(Q35798),P828,c(Q1076105))
action count
action atleast
action find_reverse_tuple_counts
relation P828
type Q1076105
type Q35798
value 1
[ANSWER]
[{'concept': 'Q35798'}, 'P828', {'concept': 'Q1076105'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:P828 ?w . ?w rdf:type ontology:Q1076105 . ?l rdf:type ontology:Q35798 } GROUP BY ?w } . FILTER ( ?e >= 1 ) }
Scottish Parliament general election, 2003 Scottish Parliament general election, 2007 Scottish Parliament general election, 2016 Scottish Parliament general election, 2011
4
action count
action atleast
action find_reverse_tuple_counts
relation has cause
type general election
type executive branch
value 1
[{'concept': 'executive branch'}, 'has cause', {'concept': 'general election'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:has_cause ?w . ?w rdf:type ontology:general_election . ?l rdf:type ontology:executive_branch } GROUP BY ?w } . FILTER ( ?e >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2827089
P39
Q12737077
USER
Which occupations were the positions for which Agostino Chiodo were appointed ?
(Q2827089,P39,c(Q12737077))
action filter_type
action find
entity Q2827089
relation P39
type Q12737077
['Q2827089', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q2827089 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Agostino Chiodo
action filter_type
action find
entity Agostino Chiodo
relation position held
type occupation
['Agostino Chiodo', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Agostino_Chiodo property:position_held ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q25174735 Q25936261 Q26084496
SYSTEM
Prime Minister of the Kingdom of Sardinia, minister of Foreign Affairs of the Kingdom of Sardinia, minister of War of the Kingdom of Sardinia
Q25174735 Q25936261 Q26084496
(Q2827089,P39,c(Q12737077))
action filter_type
action find
entity Q2827089
relation P39
type Q12737077
[ANSWERS] were the positions for which Agostino Chiodo were appointed
['Q2827089', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q2827089 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Prime Minister of the Kingdom of Sardinia minister of Foreign Affairs of the Kingdom of Sardinia minister of War of the Kingdom of Sardinia
Prime Minister of the Kingdom of Sardinia, minister of Foreign Affairs of the Kingdom of Sardinia and minister of War of the Kingdom of Sardinia were the positions for which Agostino Chiodo were appointed
Prime Minister of the Kingdom of Sardinia minister of Foreign Affairs of the Kingdom of Sardinia minister of War of the Kingdom of Sardinia
action filter_type
action find
entity Agostino Chiodo
relation position held
type occupation
['Agostino Chiodo', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Agostino_Chiodo property:position_held ?m . ?m rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q25936261
P17
Q7275
USER
Which state is that occupation located in ?
(Q25936261,P17,c(Q7275))
action filter_type
action find
entity Q25936261
relation P17
type Q7275
['Q25936261', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q25936261 property:P17 ?r . ?r rdf:type ontology:Q7275 }
minister of Foreign Affairs of the Kingdom of Sardinia
action filter_type
action find
entity minister of Foreign Affairs of the Kingdom of Sardinia
relation country
type state
['minister of Foreign Affairs of the Kingdom of Sardinia', 'country', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:minister_of_Foreign_Affairs_of_the_Kingdom_of_Sardinia property:country ?r . ?r rdf:type ontology:state }
[]
state
Clarification for simple ques.
Q25936261
SYSTEM
Did you mean minister of Foreign Affairs of the Kingdom of Sardinia ?
Q25174735 Q25936261 Q26084496
(Q25174735,P17,c(Q7275)) (Q25936261,P17,c(Q7275)) (Q26084496,P17,c(Q7275))
[ANSWER]
['Q25174735', 'P17', {'concept': 'Q7275'}] ['Q25936261', 'P17', {'concept': 'Q7275'}] ['Q26084496', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q25936261 property:P17 ?r . ?r rdf:type ontology:Q7275 }
Prime Minister of the Kingdom of Sardinia minister of Foreign Affairs of the Kingdom of Sardinia minister of War of the Kingdom of Sardinia
Did you mean minister of Foreign Affairs of the Kingdom of Sardinia ?
minister of Foreign Affairs of the Kingdom of Sardinia
['Prime Minister of the Kingdom of Sardinia', 'country', {'concept': 'state'}] ['minister of Foreign Affairs of the Kingdom of Sardinia', 'country', {'concept': 'state'}] ['minister of War of the Kingdom of Sardinia', 'country', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:minister_of_Foreign_Affairs_of_the_Kingdom_of_Sardinia property:country ?r . ?r rdf:type ontology:state }
[]
Simple Question (Coreferenced)
USER
Yes
(Q25936261,P17,c(Q7275))
['Q25936261', 'P17', {'concept': 'Q7275'}]
['minister of Foreign Affairs of the Kingdom of Sardinia', 'country', {'concept': 'state'}]
[]
Q165154
SYSTEM
Kingdom of Sardinia
Q165154
(Q25936261,P17,c(Q7275))
action filter_type
action find
entity Q25936261
relation P17
type Q7275
That occupation is located in the [ANSWER]
['Q25936261', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q25936261 property:P17 ?r . ?r rdf:type ontology:Q7275 }
Kingdom of Sardinia
That occupation is located in the Kingdom of Sardinia
Kingdom of Sardinia
action filter_type
action find
entity minister of Foreign Affairs of the Kingdom of Sardinia
relation country
type state
['minister of Foreign Affairs of the Kingdom of Sardinia', 'country', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:minister_of_Foreign_Affairs_of_the_Kingdom_of_Sardinia property:country ?r . ?r rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3070 Q495
P190
Q56061
USER
Which administrative territories are twin towns of Turin or San José ?
OR((Q495,P190,c(Q56061)), (Q3070,P190,c(Q56061)))
action filter_type
action union
action find
entity Q495
relation P190
action find
entity Q3070
relation P190
type Q56061
{'OR': [['Q495', 'P190', {'concept': 'Q56061'}], ['Q3070', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q495 property:P190 ?p } UNION { resource:Q3070 property:P190 ?p } } . ?p rdf:type ontology:Q56061 }
San José Turin
action filter_type
action union
action find
entity Turin
relation sister city
action find
entity San José
relation sister city
type administrative territorial entity
{'OR': [['Turin', 'sister city', {'concept': 'administrative territorial entity'}], ['San José', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Turin property:sister_city ?p } UNION { resource:San_José property:sister_city ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q333928 Q696074 Q16553 Q334577 Q365 Q34820 Q2807 Q914 Q1867 Q2868
SYSTEM
Some of them are Maracay, Juliaca, San Jose, Quetzaltenango, Cologne, Santo Domingo, Madrid, Volgograd, Taipei, Lima
Q16010 Q696074 Q648 Q365 Q1867 Q12439 Q468782 Q34820 Q44210 Q4093 Q23337 Q3992 Q41621 Q518431 Q333928 Q34370 Q47492 Q186935 Q2868 Q168929 Q274584 Q2807 Q334577 Q1555 Q152436 Q16553 Q914
OR((Q495,P190,c(Q56061)), (Q3070,P190,c(Q56061)))
action filter_type
action union
action find
entity Q495
relation P190
action find
entity Q3070
relation P190
type Q56061
[ANSWERS] are twin towns of Turin or San José
{'OR': [['Q495', 'P190', {'concept': 'Q56061'}], ['Q3070', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q495 property:P190 ?p } UNION { resource:Q3070 property:P190 ?p } } . ?p rdf:type ontology:Q56061 }
Esch-sur-Alzette Juliaca Lille Cologne Taipei Detroit Huancayo Santo Domingo Córdoba Glasgow Salt Lake City Liège Haifa Chimbote Maracay Rotterdam Gaza City Ahuachapán Lima Campo Grande San Pedro Sula Madrid Quetzaltenango Guatemala City Kfar Saba San Jose Volgograd
Maracay, Juliaca, San Jose, Quetzaltenango, Cologne, Santo Domingo, Madrid, Volgograd, Taipei and Lima are twin towns of Turin or San José
Maracay Juliaca San Jose Quetzaltenango Cologne Santo Domingo Madrid Volgograd Taipei Lima
action filter_type
action union
action find
entity Turin
relation sister city
action find
entity San José
relation sister city
type administrative territorial entity
{'OR': [['Turin', 'sister city', {'concept': 'administrative territorial entity'}], ['San José', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Turin property:sister_city ?p } UNION { resource:San_José property:sister_city ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5981135 Q2460984
P27
Q15617994
USER
Which administrative territories are Taco Seinstra or Ian Carmichael an inhabitant of ?
OR((Q2460984,P27,c(Q15617994)), (Q5981135,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2460984
relation P27
action find
entity Q5981135
relation P27
type Q15617994
{'OR': [['Q2460984', 'P27', {'concept': 'Q15617994'}], ['Q5981135', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q5981135 property:P27 ?v } UNION { resource:Q2460984 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Ian Carmichael Taco Seinstra
action filter_type
action union
action find
entity Taco Seinstra
relation country of citizenship
action find
entity Ian Carmichael
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Taco Seinstra', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ian Carmichael', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Ian_Carmichael property:country_of_citizenship ?v } UNION { resource:Taco_Seinstra property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29999 Q145
SYSTEM
Kingdom of the Netherlands, United Kingdom
Q29999 Q145
OR((Q2460984,P27,c(Q15617994)), (Q5981135,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2460984
relation P27
action find
entity Q5981135
relation P27
type Q15617994
[ANSWERS] are Taco Seinstra or Ian Carmichael an inhabitant of
{'OR': [['Q2460984', 'P27', {'concept': 'Q15617994'}], ['Q5981135', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q5981135 property:P27 ?v } UNION { resource:Q2460984 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Kingdom of the Netherlands United Kingdom
Kingdom of the Netherlands and United Kingdom are Taco Seinstra or Ian Carmichael an inhabitant of
Kingdom of the Netherlands United Kingdom
action filter_type
action union
action find
entity Taco Seinstra
relation country of citizenship
action find
entity Ian Carmichael
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Taco Seinstra', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ian Carmichael', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Ian_Carmichael property:country_of_citizenship ?v } UNION { resource:Taco_Seinstra property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5981135
P106
Q12737077
USER
What are the professions of Ian Carmichael ?
(Q5981135,P106,c(Q12737077))
action filter_type
action find
entity Q5981135
relation P106
type Q12737077
['Q5981135', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q5981135 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Ian Carmichael
action filter_type
action find
entity Ian Carmichael
relation occupation
type occupation
['Ian Carmichael', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Ian_Carmichael property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q36834 Q128124 Q81096
SYSTEM
composer, audio engineer, engineer
Q128124 Q81096 Q183945 Q36834
(Q5981135,P106,c(Q12737077))
action filter_type
action find
entity Q5981135
relation P106
type Q12737077
The professions of Ian Carmichael are [ANSWERS]
['Q5981135', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q5981135 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
audio engineer engineer record producer composer
The professions of Ian Carmichael are composer, audio engineer and engineer
composer audio engineer engineer
action filter_type
action find
entity Ian Carmichael
relation occupation
type occupation
['Ian Carmichael', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Ian_Carmichael property:occupation ?f . ?f rdf:type ontology:occupation }
[]