Simple Question (Direct)
Simple Question
Q77170
P734
Q82799
USER
Who is associated with Florian Mayer ?
(Q77170,P734,c(Q82799))
action filter_type
action find
entity Q77170
relation P734
type Q82799
['Q77170', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q77170 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Florian Mayer
action filter_type
action find
entity Florian Mayer
relation family name
type name
['Florian Mayer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Florian_Mayer property:family_name ?x . ?x rdf:type ontology:name }
[]
name
Q13725587
SYSTEM
Mayer
Q13725587
(Q77170,P734,c(Q82799))
action filter_type
action find
entity Q77170
relation P734
type Q82799
[ANSWER] is associated with Florian [ANSWER]
['Q77170', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q77170 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Mayer
Mayer is associated with Florian Mayer
Mayer
action filter_type
action find
entity Florian Mayer
relation family name
type name
['Florian Mayer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Florian_Mayer property:family_name ?x . ?x rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q77170
P19
Q15617994
USER
Where was that person born ?
(Q13725587,P19,c(Q15617994))
action filter_type
action find
entity Q77170
relation P19
type Q15617994
['Q13725587', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q77170 property:P19 ?o . ?o rdf:type ontology:Q15617994 }
Florian Mayer
action filter_type
action find
entity Florian Mayer
relation place of birth
type designation for an administrative territorial entity
['Mayer', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Florian_Mayer property:place_of_birth ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q3923
SYSTEM
Bayreuth
Q3923
(Q13725587,P19,c(Q15617994))
action filter_type
action find
entity Q77170
relation P19
type Q15617994
That person was born in [ANSWER]
['Q13725587', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q77170 property:P19 ?o . ?o rdf:type ontology:Q15617994 }
Bayreuth
That person was born in Bayreuth
Bayreuth
action filter_type
action find
entity Florian Mayer
relation place of birth
type designation for an administrative territorial entity
['Mayer', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Florian_Mayer property:place_of_birth ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3923 Q183 Q1602429
P17
Q1048835
USER
Is that administrative territory present in Germany and Medio Cudeyo ?
(Q3923,P17,Q183) (Q3923,P17,Q1602429)
action is_in
entity Q3923
action intersection
action find_reverse
entity Q183
relation P17
action find_reverse
entity Q1602429
relation P17
['Q3923', 'P17', 'Q183'] ['Q3923', 'P17', 'Q1602429']
ASK WHERE { resource:Q3923 property:P17 resource:Q183 . resource:Q3923 property:P17 resource:Q1602429 }
Bayreuth Germany Medio Cudeyo
action is_in
entity Bayreuth
action intersection
action find_reverse
entity Germany
relation country
action find_reverse
entity Medio Cudeyo
relation country
['Bayreuth', 'country', 'Germany'] ['Bayreuth', 'country', 'Medio Cudeyo']
ASK WHERE { resource:Bayreuth property:country resource:Germany . resource:Bayreuth property:country resource:Medio_Cudeyo }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q3923,P17,Q183) (Q3923,P17,Q1602429)
action is_in
entity Q3923
action intersection
action find_reverse
entity Q183
relation P17
action find_reverse
entity Q1602429
relation P17
[ANSWER]
['Q3923', 'P17', 'Q183'] ['Q3923', 'P17', 'Q1602429']
ASK WHERE { resource:Q3923 property:P17 resource:Q183 . resource:Q3923 property:P17 resource:Q1602429 }
YES and NO respectively
action is_in
entity Bayreuth
action intersection
action find_reverse
entity Germany
relation country
action find_reverse
entity Medio Cudeyo
relation country
['Bayreuth', 'country', 'Germany'] ['Bayreuth', 'country', 'Medio Cudeyo']
ASK WHERE { resource:Bayreuth property:country resource:Germany . resource:Bayreuth property:country resource:Medio_Cudeyo }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3923
P206
Q355304
USER
Which watercourses are located in the neighbourhood of that administrative territory ?
action filter_type
action find
entity Q3923
relation P206
type Q355304
SELECT DISTINCT ?h WHERE { resource:Q3923 property:P206 ?h . ?h rdf:type ontology:Q355304 }
Bayreuth
action filter_type
action find
entity Bayreuth
relation located next to body of water
type watercourse
SELECT DISTINCT ?h WHERE { resource:Bayreuth property:located_next_to_body_of_water ?h . ?h rdf:type ontology:watercourse }
[]
watercourse
Q829339 Q869541 Q566481
SYSTEM
Mistel, Warme Steinach, Red Main
Q829339 Q869541 Q566481
action filter_type
action find
entity Q3923
relation P206
type Q355304
[ANSWERS] are located in the neighbourhood of that administrative territory
SELECT DISTINCT ?h WHERE { resource:Q3923 property:P206 ?h . ?h rdf:type ontology:Q355304 }
Mistel Warme Steinach Red Main
Mistel, Warme Steinach and Red Main are located in the neighbourhood of that administrative territory
Mistel Warme Steinach Red Main
action filter_type
action find
entity Bayreuth
relation located next to body of water
type watercourse
SELECT DISTINCT ?h WHERE { resource:Bayreuth property:located_next_to_body_of_water ?h . ?h rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4709329
P206
Q15617994
USER
Are Albany Independent School District located in the neighbourhood of those watercourses ?
(Q4709329,P206,Q829339) (Q4709329,P206,Q869541) (Q4709329,P206,Q566481)
action is_in
entity prev_answer
action find
entity Q4709329
relation P206
['Q4709329', 'P206', 'Q829339'] ['Q4709329', 'P206', 'Q869541'] ['Q4709329', 'P206', 'Q566481']
ASK WHERE { VALUES ( ?f ) { ( resource:Q829339 ) ( resource:Q869541 ) ( resource:Q566481 ) } . resource:Q4709329 property:P206 ?f }
Albany Independent School District
action is_in
entity prev_answer
action find
entity Albany Independent School District
relation located next to body of water
['Albany Independent School District', 'located next to body of water', 'Mistel'] ['Albany Independent School District', 'located next to body of water', 'Warme Steinach'] ['Albany Independent School District', 'located next to body of water', 'Red Main']
ASK WHERE { VALUES ( ?f ) { ( resource:Mistel ) ( resource:Warme_Steinach ) ( resource:Red_Main ) } . resource:Albany_Independent_School_District property:located_next_to_body_of_water ?f }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4709329,P206,Q829339) (Q4709329,P206,Q869541) (Q4709329,P206,Q566481)
action is_in
entity prev_answer
action find
entity Q4709329
relation P206
[ANSWER]
['Q4709329', 'P206', 'Q829339'] ['Q4709329', 'P206', 'Q869541'] ['Q4709329', 'P206', 'Q566481']
ASK WHERE { VALUES ( ?f ) { ( resource:Q829339 ) ( resource:Q869541 ) ( resource:Q566481 ) } . resource:Q4709329 property:P206 ?f }
No
action is_in
entity prev_answer
action find
entity Albany Independent School District
relation located next to body of water
['Albany Independent School District', 'located next to body of water', 'Mistel'] ['Albany Independent School District', 'located next to body of water', 'Warme Steinach'] ['Albany Independent School District', 'located next to body of water', 'Red Main']
ASK WHERE { VALUES ( ?f ) { ( resource:Mistel ) ( resource:Warme_Steinach ) ( resource:Red_Main ) } . resource:Albany_Independent_School_District property:located_next_to_body_of_water ?f }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P3173
Q355304 Q811979
USER
How many architectural structures contain views of atleast 1 watercourse ?
(c(Q811979),P3173,c(Q355304))
action count
action atleast
action find_tuple_counts
relation P3173
type Q811979
type Q355304
value 1
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?n ) WHERE { ?x rdf:type ontology:Q811979 . ?k rdf:type ontology:Q355304 . ?x property:P3173 ?k } GROUP BY ?x } . FILTER ( ?n >= 1 ) }
action count
action atleast
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
value 1
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?n ) WHERE { ?x rdf:type ontology:architectural_structure . ?k rdf:type ontology:watercourse . ?x property:offers_view_on ?k } GROUP BY ?x } . FILTER ( ?n >= 1 ) }
[]
watercourse architectural structure
SYSTEM
2
Q26196531 Q2433474
(c(Q811979),P3173,c(Q355304))
action count
action atleast
action find_tuple_counts
relation P3173
type Q811979
type Q355304
value 1
[ANSWER]
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?n ) WHERE { ?x rdf:type ontology:Q811979 . ?k rdf:type ontology:Q355304 . ?x property:P3173 ?k } GROUP BY ?x } . FILTER ( ?n >= 1 ) }
Washburn Point Tunnel View
2
action count
action atleast
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
value 1
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?n ) WHERE { ?x rdf:type ontology:architectural_structure . ?k rdf:type ontology:watercourse . ?x property:offers_view_on ?k } GROUP BY ?x } . FILTER ( ?n >= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q566481 Q671841
P403
Q355304
USER
How many watercourses do Red Main or Nieuwe Rijn drain into ?
(Q566481,P403,c(Q355304)) (Q671841,P403,c(Q355304))
action count
action union
action filter_type
action find
entity Q566481
relation P403
type Q355304
action filter_type
action find
entity Q671841
relation P403
type Q355304
['Q566481', 'P403', {'concept': 'Q355304'}] ['Q671841', 'P403', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { ?u property:P403 ?b . VALUES ( ?u ) { ( resource:Q671841 ) ( resource:Q566481 ) } }
Red Main Nieuwe Rijn
action count
action union
action filter_type
action find
entity Red Main
relation mouth of the watercourse
type watercourse
action filter_type
action find
entity Nieuwe Rijn
relation mouth of the watercourse
type watercourse
['Red Main', 'mouth of the watercourse', {'concept': 'watercourse'}] ['Nieuwe Rijn', 'mouth of the watercourse', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { ?u property:mouth_of_the_watercourse ?b . VALUES ( ?u ) { ( resource:Nieuwe_Rijn ) ( resource:Red_Main ) } }
[]
watercourse
SYSTEM
2
Q1670 Q1345836
(Q566481,P403,c(Q355304)) (Q671841,P403,c(Q355304))
action count
action union
action filter_type
action find
entity Q566481
relation P403
type Q355304
action filter_type
action find
entity Q671841
relation P403
type Q355304
[ANSWER]
['Q566481', 'P403', {'concept': 'Q355304'}] ['Q671841', 'P403', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { ?u property:P403 ?b . VALUES ( ?u ) { ( resource:Q671841 ) ( resource:Q566481 ) } }
Main Oude Rijn
2
action count
action union
action filter_type
action find
entity Red Main
relation mouth of the watercourse
type watercourse
action filter_type
action find
entity Nieuwe Rijn
relation mouth of the watercourse
type watercourse
['Red Main', 'mouth of the watercourse', {'concept': 'watercourse'}] ['Nieuwe Rijn', 'mouth of the watercourse', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { ?u property:mouth_of_the_watercourse ?b . VALUES ( ?u ) { ( resource:Nieuwe_Rijn ) ( resource:Red_Main ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q926144 Q77170
P47 P27
Q1048835
USER
Which political territories are Florian Mayer an inhabitant of or share the border with Aznalcázar ?
OR((Q77170,P27,c(Q1048835)), (Q926144,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q77170
relation P27
action find
entity Q926144
relation P47
type Q1048835
{'OR': [['Q77170', 'P27', {'concept': 'Q1048835'}], ['Q926144', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1048835 . { { resource:Q77170 property:P27 ?q } UNION { resource:Q926144 property:P47 ?q } } }
Aznalcázar Florian Mayer
action filter_type
action union
action find
entity Florian Mayer
relation country of citizenship
action find
entity Aznalcázar
relation shares border with
type political territorial entity
{'OR': [['Florian Mayer', 'country of citizenship', {'concept': 'political territorial entity'}], ['Aznalcázar', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_territorial_entity . { { resource:Florian_Mayer property:country_of_citizenship ?q } UNION { resource:Aznalcázar property:shares_border_with ?q } } }
[]
political territorial entity
Q1610648 Q1615013 Q602485 Q1616138 Q1628394 Q1605737 Q1605575 Q183 Q1605640 Q1601699
SYSTEM
Some of them are Trebujena, Hinojos, Umbrete, Pilas, Benacazón, La Puebla del Río, Isla Mayor, Germany, Bollullos de la Mitación, Villamanrique de la Condesa
Q210887 Q1610648 Q1605575 Q602485 Q183 Q1615013 Q1601699 Q1605640 Q1628394 Q1616138 Q1605737
OR((Q77170,P27,c(Q1048835)), (Q926144,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q77170
relation P27
action find
entity Q926144
relation P47
type Q1048835
[ANSWERS] are Florian Mayer an inhabitant of or share the border with Aznalcázar
{'OR': [['Q77170', 'P27', {'concept': 'Q1048835'}], ['Q926144', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1048835 . { { resource:Q77170 property:P27 ?q } UNION { resource:Q926144 property:P47 ?q } } }
Sanlúcar de Barrameda Trebujena Isla Mayor Umbrete Germany Hinojos Villamanrique de la Condesa Bollullos de la Mitación Benacazón Pilas La Puebla del Río
Trebujena, Hinojos, Umbrete, Pilas, Benacazón, La Puebla del Río, Isla Mayor, Germany, Bollullos de la Mitación and Villamanrique de la Condesa are Florian Mayer an inhabitant of or share the border with Aznalcázar
Trebujena Hinojos Umbrete Pilas Benacazón La Puebla del Río Isla Mayor Germany Bollullos de la Mitación Villamanrique de la Condesa
action filter_type
action union
action find
entity Florian Mayer
relation country of citizenship
action find
entity Aznalcázar
relation shares border with
type political territorial entity
{'OR': [['Florian Mayer', 'country of citizenship', {'concept': 'political territorial entity'}], ['Aznalcázar', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_territorial_entity . { { resource:Florian_Mayer property:country_of_citizenship ?q } UNION { resource:Aznalcázar property:shares_border_with ?q } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q183
P551
Q502895
USER
Which people have residence at that political territory ?
(c(Q502895),P551,Q183)
action filter_type
action find_reverse
entity Q183
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q183']
SELECT DISTINCT ?i WHERE { ?i property:P551 resource:Q183 . ?i rdf:type ontology:Q502895 }
Germany
action filter_type
action find_reverse
entity Germany
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Germany']
SELECT DISTINCT ?i WHERE { ?i property:residence resource:Germany . ?i rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q602485
SYSTEM
Did you mean Umbrete ?
Q1610648 Q1615013 Q602485 Q1616138 Q1628394 Q1605737 Q1605575 Q183 Q1605640 Q1601699
(c(Q502895),P551,Q1610648) (c(Q502895),P551,Q1615013) (c(Q502895),P551,Q602485) (c(Q502895),P551,Q1616138) (c(Q502895),P551,Q1628394) (c(Q502895),P551,Q1605737) (c(Q502895),P551,Q1605575) (c(Q502895),P551,Q183) (c(Q502895),P551,Q1605640) (c(Q502895),P551,Q1601699)
[ANSWER]
[{'concept': 'Q502895'}, 'P551', 'Q1610648'] [{'concept': 'Q502895'}, 'P551', 'Q1615013'] [{'concept': 'Q502895'}, 'P551', 'Q602485'] [{'concept': 'Q502895'}, 'P551', 'Q1616138'] [{'concept': 'Q502895'}, 'P551', 'Q1628394'] [{'concept': 'Q502895'}, 'P551', 'Q1605737'] [{'concept': 'Q502895'}, 'P551', 'Q1605575'] [{'concept': 'Q502895'}, 'P551', 'Q183'] [{'concept': 'Q502895'}, 'P551', 'Q1605640'] [{'concept': 'Q502895'}, 'P551', 'Q1601699']
SELECT DISTINCT ?i WHERE { ?i property:P551 resource:Q183 . ?i rdf:type ontology:Q502895 }
Trebujena Hinojos Umbrete Pilas Benacazón La Puebla del Río Isla Mayor Germany Bollullos de la Mitación Villamanrique de la Condesa
Did you mean Umbrete ?
Umbrete
[{'concept': 'common name'}, 'residence', 'Trebujena'] [{'concept': 'common name'}, 'residence', 'Hinojos'] [{'concept': 'common name'}, 'residence', 'Umbrete'] [{'concept': 'common name'}, 'residence', 'Pilas'] [{'concept': 'common name'}, 'residence', 'Benacazón'] [{'concept': 'common name'}, 'residence', 'La Puebla del Río'] [{'concept': 'common name'}, 'residence', 'Isla Mayor'] [{'concept': 'common name'}, 'residence', 'Germany'] [{'concept': 'common name'}, 'residence', 'Bollullos de la Mitación'] [{'concept': 'common name'}, 'residence', 'Villamanrique de la Condesa']
SELECT DISTINCT ?i WHERE { ?i property:residence resource:Germany . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Germany. Could you tell me the answer for that?
(c(Q502895),P551,Q183)
Q183
[{'concept': 'Q502895'}, 'P551', 'Q183']
[{'concept': 'common name'}, 'residence', 'Germany']
[]
Q14943164 Q60066 Q117139
SYSTEM
Alain Schneider, Gerhard Ertl, Wiz Khalifa
Q60066 Q114060 Q23721911 Q5847813 Q6309468 Q17302908 Q273207 Q107961 Q7348968 Q215182 Q18534257 Q14943164 Q12729037 Q5217909 Q24324351 Q117139 Q100236 Q15429884 Q65081 Q1036172 Q2221144 Q25865472 Q1983888 Q1808047 Q108459 Q17198141 Q101005
(c(Q502895),P551,Q183)
action filter_type
action find_reverse
entity Q183
relation P551
type Q502895
[ANSWERS] have residence at that political territory
[{'concept': 'Q502895'}, 'P551', 'Q183']
SELECT DISTINCT ?i WHERE { ?i property:P551 resource:Q183 . ?i rdf:type ontology:Q502895 }
Gerhard Ertl Hedwig Schlichter Maryna Viazovska Waldemar Wilhelm Julio Peralta Brenda Sue Fulton George Egerton Bastian Knittel Robert Pope Michael Stipe Erna Auerbach Alain Schneider Gerd Bonfert Daniel Lencina-Ribes Uisenma Borchu Wiz Khalifa Jan Koemmet Mary Elizabeth Hawker Marc-Kevin Goellner Carin C. Tietze Sandra Wöhe Michaël Magne Eric Wrixon Laurens W. Molenkamp Heiko Harborth Darryl Foster Gerd Hirzinger
Alain Schneider, Gerhard Ertl and Wiz Khalifa have residence at that political territory
Alain Schneider Gerhard Ertl Wiz Khalifa
action filter_type
action find_reverse
entity Germany
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Germany']
SELECT DISTINCT ?i WHERE { ?i property:residence resource:Germany . ?i rdf:type ontology:common_name }
[]