Simple Question (Direct)
Simple Question
Q3848567
P102
Q7210356
USER
Which political organization is Mario Ferrari Aggradi a member of ?
(Q3848567,P102,c(Q7210356))
action filter_type
action find
entity Q3848567
relation P102
type Q7210356
['Q3848567', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q3848567 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Mario Ferrari Aggradi
action filter_type
action find
entity Mario Ferrari Aggradi
relation member of political party
type political organization
['Mario Ferrari Aggradi', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Mario_Ferrari_Aggradi property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q815348
SYSTEM
Christian Democracy
Q815348
(Q3848567,P102,c(Q7210356))
action filter_type
action find
entity Q3848567
relation P102
type Q7210356
The [ANSWER] is Mario Ferrari Aggradi a member of
['Q3848567', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q3848567 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Christian Democracy
The Christian Democracy is Mario Ferrari Aggradi a member of
Christian Democracy
action filter_type
action find
entity Mario Ferrari Aggradi
relation member of political party
type political organization
['Mario Ferrari Aggradi', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Mario_Ferrari_Aggradi property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q815348
P159
Q56061
USER
Where is the head office for that political organization located ?
(Q815348,P159,c(Q56061))
action filter_type
action find
entity Q815348
relation P159
type Q56061
['Q815348', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q815348 property:P159 ?j . ?j rdf:type ontology:Q56061 }
Christian Democracy
action filter_type
action find
entity Christian Democracy
relation headquarters location
type administrative territorial entity
['Christian Democracy', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Christian_Democracy property:headquarters_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q815348,P159,c(Q56061))
action filter_type
action find
entity Q815348
relation P159
type Q56061
The head office for that political organization is located in [ANSWER]
['Q815348', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q815348 property:P159 ?j . ?j rdf:type ontology:Q56061 }
Rome
The head office for that political organization is located in Rome
Rome
action filter_type
action find
entity Christian Democracy
relation headquarters location
type administrative territorial entity
['Christian Democracy', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Christian_Democracy property:headquarters_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q220 Q686715 Q5337819
P1376
Q15617994
USER
Is Rome the capital of Lehmkuhlen and Edgerton School District ?
(Q220,P1376,Q686715) (Q220,P1376,Q5337819)
action is_in
entity Q220
action intersection
action find_reverse
entity Q686715
relation P1376
action find_reverse
entity Q5337819
relation P1376
['Q220', 'P1376', 'Q686715'] ['Q220', 'P1376', 'Q5337819']
ASK WHERE { resource:Q220 property:P1376 resource:Q5337819 . resource:Q220 property:P1376 resource:Q686715 }
Rome Lehmkuhlen Edgerton School District
action is_in
entity Rome
action intersection
action find_reverse
entity Lehmkuhlen
relation capital of
action find_reverse
entity Edgerton School District
relation capital of
['Rome', 'capital of', 'Lehmkuhlen'] ['Rome', 'capital of', 'Edgerton School District']
ASK WHERE { resource:Rome property:capital_of resource:Edgerton_School_District . resource:Rome property:capital_of resource:Lehmkuhlen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q220,P1376,Q686715) (Q220,P1376,Q5337819)
action is_in
entity Q220
action intersection
action find_reverse
entity Q686715
relation P1376
action find_reverse
entity Q5337819
relation P1376
[ANSWER]
['Q220', 'P1376', 'Q686715'] ['Q220', 'P1376', 'Q5337819']
ASK WHERE { resource:Q220 property:P1376 resource:Q5337819 . resource:Q220 property:P1376 resource:Q686715 }
No
action is_in
entity Rome
action intersection
action find_reverse
entity Lehmkuhlen
relation capital of
action find_reverse
entity Edgerton School District
relation capital of
['Rome', 'capital of', 'Lehmkuhlen'] ['Rome', 'capital of', 'Edgerton School District']
ASK WHERE { resource:Rome property:capital_of resource:Edgerton_School_District . resource:Rome property:capital_of resource:Lehmkuhlen }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4788066 Q686715
P17
Q1048835
USER
Which political territories are Lehmkuhlen or Ardill, Saskatchewan present in ?
OR((Q686715,P17,c(Q1048835)), (Q4788066,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q686715
relation P17
action find
entity Q4788066
relation P17
type Q1048835
{'OR': [['Q686715', 'P17', {'concept': 'Q1048835'}], ['Q4788066', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . { VALUES ( ?d ) { ( resource:Q686715 ) ( resource:Q4788066 ) } . ?d property:P17 ?l } }
Ardill, Saskatchewan Lehmkuhlen
action filter_type
action union
action find
entity Lehmkuhlen
relation country
action find
entity Ardill, Saskatchewan
relation country
type political territorial entity
{'OR': [['Lehmkuhlen', 'country', {'concept': 'political territorial entity'}], ['Ardill, Saskatchewan', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . { VALUES ( ?d ) { ( resource:Lehmkuhlen ) ( resource:Ardill,_Saskatchewan ) } . ?d property:country ?l } }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q686715,P17,c(Q1048835)), (Q4788066,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q686715
relation P17
action find
entity Q4788066
relation P17
type Q1048835
[ANSWERS]
{'OR': [['Q686715', 'P17', {'concept': 'Q1048835'}], ['Q4788066', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . { VALUES ( ?d ) { ( resource:Q686715 ) ( resource:Q4788066 ) } . ?d property:P17 ?l } }
Canada Germany
Which political territories are Lehmkuhlen or Ardill, Saskatchewan present in
Canada Germany
action filter_type
action union
action find
entity Lehmkuhlen
relation country
action find
entity Ardill, Saskatchewan
relation country
type political territorial entity
{'OR': [['Lehmkuhlen', 'country', {'concept': 'political territorial entity'}], ['Ardill, Saskatchewan', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . { VALUES ( ?d ) { ( resource:Lehmkuhlen ) ( resource:Ardill,_Saskatchewan ) } . ?d property:country ?l } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18715864 Q220
P19 P190
Q56061
USER
Which administrative territories are twin cities of Rome or were Ernie Young born at ?
OR((Q220,P190,c(Q56061)), (Q18715864,P19,c(Q56061)))
action filter_type
action union
action find
entity Q220
relation P190
action find
entity Q18715864
relation P19
type Q56061
{'OR': [['Q220', 'P190', {'concept': 'Q56061'}], ['Q18715864', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q220 property:P190 ?y } UNION { resource:Q18715864 property:P19 ?y } } . ?y rdf:type ontology:Q56061 }
Ernie Young Rome
action filter_type
action union
action find
entity Rome
relation sister city
action find
entity Ernie Young
relation place of birth
type administrative territorial entity
{'OR': [['Rome', 'sister city', {'concept': 'administrative territorial entity'}], ['Ernie Young', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Rome property:sister_city ?y } UNION { resource:Ernie_Young property:place_of_birth ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q484799 Q8717 Q90 Q652078 Q34647 Q1490 Q132830
SYSTEM
Marbella, Seville, Paris, Thornaby-on-Tees, Johannesburg, Tokyo, Douala
Q484799 Q8717 Q90 Q652078 Q34647 Q1490 Q132830
OR((Q220,P190,c(Q56061)), (Q18715864,P19,c(Q56061)))
action filter_type
action union
action find
entity Q220
relation P190
action find
entity Q18715864
relation P19
type Q56061
[ANSWERS] are twin cities of Rome or were Ernie Young born at
{'OR': [['Q220', 'P190', {'concept': 'Q56061'}], ['Q18715864', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q220 property:P190 ?y } UNION { resource:Q18715864 property:P19 ?y } } . ?y rdf:type ontology:Q56061 }
Marbella Seville Paris Thornaby-on-Tees Johannesburg Tokyo Douala
Marbella, Seville, Paris, Thornaby-on-Tees, Johannesburg, Tokyo and Douala are twin cities of Rome or were Ernie Young born at
Marbella Seville Paris Thornaby-on-Tees Johannesburg Tokyo Douala
action filter_type
action union
action find
entity Rome
relation sister city
action find
entity Ernie Young
relation place of birth
type administrative territorial entity
{'OR': [['Rome', 'sister city', {'concept': 'administrative territorial entity'}], ['Ernie Young', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Rome property:sister_city ?y } UNION { resource:Ernie_Young property:place_of_birth ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P291
Q56061 Q571 Q11032
USER
Which administrative territories are the publication regions of atleast 59 books or newspapers ?
(c(Q571)|c(Q11032),P291,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
value 59
[[{'concept': 'Q571'}, {'concept': 'Q11032'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?a WHERE { { ?c property:P291 ?a . ?a rdf:type ontology:Q56061 . ?c rdf:type ontology:Q11032 } UNION { ?c property:P291 ?a . ?c rdf:type ontology:Q571 . ?a rdf:type ontology:Q56061 } } GROUP BY ?a } . FILTER ( ?q >= 59 ) }
action atleast
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
value 59
[[{'concept': 'book'}, {'concept': 'newspaper'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?a WHERE { { ?c property:place_of_publication ?a . ?a rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:newspaper } UNION { ?c property:place_of_publication ?a . ?c rdf:type ontology:book . ?a rdf:type ontology:administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?q >= 59 ) }
[]
administrative territorial entity book newspaper
Q1022 Q90 Q84
SYSTEM
Stuttgart, Paris, London
Q1022 Q90 Q84
(c(Q571)|c(Q11032),P291,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
value 59
[ANSWERS] are the publication regions of atleast 59 books or newspapers
[[{'concept': 'Q571'}, {'concept': 'Q11032'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?a WHERE { { ?c property:P291 ?a . ?a rdf:type ontology:Q56061 . ?c rdf:type ontology:Q11032 } UNION { ?c property:P291 ?a . ?c rdf:type ontology:Q571 . ?a rdf:type ontology:Q56061 } } GROUP BY ?a } . FILTER ( ?q >= 59 ) }
Stuttgart Paris London
Stuttgart, Paris and London are the publication regions of atleast 59 books or newspapers
Stuttgart Paris London
action atleast
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
value 59
[[{'concept': 'book'}, {'concept': 'newspaper'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?a WHERE { { ?c property:place_of_publication ?a . ?a rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:newspaper } UNION { ?c property:place_of_publication ?a . ?c rdf:type ontology:book . ?a rdf:type ontology:administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?q >= 59 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5301604 Q18715864
P27
Q15617994
USER
Which administrative territories are Ernie Young or Douglas Hodge an inhabitant of ?
OR((Q18715864,P27,c(Q15617994)), (Q5301604,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18715864
relation P27
action find
entity Q5301604
relation P27
type Q15617994
{'OR': [['Q18715864', 'P27', {'concept': 'Q15617994'}], ['Q5301604', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q18715864 property:P27 ?y } UNION { resource:Q5301604 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Douglas Hodge Ernie Young
action filter_type
action union
action find
entity Ernie Young
relation country of citizenship
action find
entity Douglas Hodge
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ernie Young', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Douglas Hodge', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Ernie_Young property:country_of_citizenship ?y } UNION { resource:Douglas_Hodge property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
OR((Q18715864,P27,c(Q15617994)), (Q5301604,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18715864
relation P27
action find
entity Q5301604
relation P27
type Q15617994
The [ANSWER] is Ernie Young or Douglas Hodge an inhabitant of
{'OR': [['Q18715864', 'P27', {'concept': 'Q15617994'}], ['Q5301604', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q18715864 property:P27 ?y } UNION { resource:Q5301604 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
United Kingdom
The United Kingdom is Ernie Young or Douglas Hodge an inhabitant of
United Kingdom
action filter_type
action union
action find
entity Ernie Young
relation country of citizenship
action find
entity Douglas Hodge
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ernie Young', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Douglas Hodge', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Ernie_Young property:country_of_citizenship ?y } UNION { resource:Douglas_Hodge property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q145 Q26610529
P17
Q3947
USER
Is Rose Cottages located in that administrative territory ?
(Q26610529,P17,Q145)
action is_in
entity Q145
action find
entity Q26610529
relation P17
['Q26610529', 'P17', 'Q145']
ASK WHERE { resource:Q26610529 property:P17 resource:Q145 }
United Kingdom Rose Cottages
action is_in
entity United Kingdom
action find
entity Rose Cottages
relation country
['Rose Cottages', 'country', 'United Kingdom']
ASK WHERE { resource:Rose_Cottages property:country resource:United_Kingdom }
[]
house
SYSTEM
YES
(Q26610529,P17,Q145)
action is_in
entity Q145
action find
entity Q26610529
relation P17
[ANSWER]
['Q26610529', 'P17', 'Q145']
ASK WHERE { resource:Q26610529 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Rose Cottages
relation country
['Rose Cottages', 'country', 'United Kingdom']
ASK WHERE { resource:Rose_Cottages property:country resource:United_Kingdom }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P35
Q502895
USER
Which people are the heads of state of United Kingdom ?
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q145 property:P35 ?x }
United Kingdom
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:United_Kingdom property:head_of_state ?x }
[]
common name
Q9682 Q280856 Q269412
SYSTEM
Elizabeth II, George VI, George V
Q590227 Q269412 Q280856 Q9682
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
[ANSWERS] are the heads of state of United Kingdom
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q145 property:P35 ?x }
Edward VIII George V George VI Elizabeth II
Elizabeth II, George VI and George V are the heads of state of United Kingdom
Elizabeth II George VI George V
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:United_Kingdom property:head_of_state ?x }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q43047
P35
Q15617994
USER
Did Cremosano elect those people as their head of state ?
(Q43047,P35,Q9682) (Q43047,P35,Q280856) (Q43047,P35,Q269412)
action is_in
entity prev_answer
action find
entity Q43047
relation P35
['Q43047', 'P35', 'Q9682'] ['Q43047', 'P35', 'Q280856'] ['Q43047', 'P35', 'Q269412']
ASK WHERE { VALUES ( ?n ) { ( resource:Q590227 ) ( resource:Q269412 ) ( resource:Q280856 ) } . resource:Q43047 property:P35 ?n }
Cremosano
action is_in
entity prev_answer
action find
entity Cremosano
relation head of state
['Cremosano', 'head of state', 'Elizabeth II'] ['Cremosano', 'head of state', 'George VI'] ['Cremosano', 'head of state', 'George V']
ASK WHERE { VALUES ( ?n ) { ( resource:Edward_VIII ) ( resource:George_V ) ( resource:George_VI ) } . resource:Cremosano property:head_of_state ?n }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q43047,P35,Q9682) (Q43047,P35,Q280856) (Q43047,P35,Q269412)
action is_in
entity prev_answer
action find
entity Q43047
relation P35
[ANSWER]
['Q43047', 'P35', 'Q9682'] ['Q43047', 'P35', 'Q280856'] ['Q43047', 'P35', 'Q269412']
ASK WHERE { VALUES ( ?n ) { ( resource:Q590227 ) ( resource:Q269412 ) ( resource:Q280856 ) } . resource:Q43047 property:P35 ?n }
No
action is_in
entity prev_answer
action find
entity Cremosano
relation head of state
['Cremosano', 'head of state', 'Elizabeth II'] ['Cremosano', 'head of state', 'George VI'] ['Cremosano', 'head of state', 'George V']
ASK WHERE { VALUES ( ?n ) { ( resource:Edward_VIII ) ( resource:George_V ) ( resource:George_VI ) } . resource:Cremosano property:head_of_state ?n }
[]