Simple Question (Direct)
Simple Question
Q19287717
P937
Q515
USER
Which are the work locations of Karl Wilhelm Becker ?
(Q19287717,P937,c(Q515))
action filter_type
action find
entity Q19287717
relation P937
type Q515
['Q19287717', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q19287717 property:P937 ?h . ?h rdf:type ontology:Q515 }
Karl Wilhelm Becker
action filter_type
action find
entity Karl Wilhelm Becker
relation work location
type city
['Karl Wilhelm Becker', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Karl_Wilhelm_Becker property:work_location ?h . ?h rdf:type ontology:city }
[]
city
Q2119 Q3042 Q1794
SYSTEM
Mannheim, Offenbach am Main, Frankfurt
Q2119 Q3042 Q1794
(Q19287717,P937,c(Q515))
action filter_type
action find
entity Q19287717
relation P937
type Q515
The work locations of Karl Wilhelm Becker are in [ANSWERS]
['Q19287717', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q19287717 property:P937 ?h . ?h rdf:type ontology:Q515 }
Mannheim Offenbach am Main Frankfurt
The work locations of Karl Wilhelm Becker are in Mannheim, Offenbach am Main and Frankfurt
Mannheim Offenbach am Main Frankfurt
action filter_type
action find
entity Karl Wilhelm Becker
relation work location
type city
['Karl Wilhelm Becker', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Karl_Wilhelm_Becker property:work_location ?h . ?h rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2119 Q3042 Q1794
P206
Q355304
USER
Which watercourses are situated nearby those cities ?
(Q2119,P206,c(Q355304)) (Q3042,P206,c(Q355304)) (Q1794,P206,c(Q355304))
action filter_type
action find
entity prev_answer
relation P206
type Q355304
['Q2119', 'P206', {'concept': 'Q355304'}] ['Q3042', 'P206', {'concept': 'Q355304'}] ['Q1794', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?e WHERE { ?d property:P206 ?e . VALUES ( ?d ) { ( resource:Q2119 ) ( resource:Q3042 ) ( resource:Q1794 ) } . ?e rdf:type ontology:Q355304 }
Mannheim Offenbach am Main Frankfurt
action filter_type
action find
entity prev_answer
relation located next to body of water
type watercourse
['Mannheim', 'located next to body of water', {'concept': 'watercourse'}] ['Offenbach am Main', 'located next to body of water', {'concept': 'watercourse'}] ['Frankfurt', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?e WHERE { ?d property:located_next_to_body_of_water ?e . VALUES ( ?d ) { ( resource:Mannheim ) ( resource:Offenbach_am_Main ) ( resource:Frankfurt ) } . ?e rdf:type ontology:watercourse }
[]
watercourse
Q584 Q1670 Q1670
SYSTEM
Main for 2nd, 3rd, Rhine for 1st
Q1673 Q584 Q1670 Q314936 Q880300 Q1670
(Q2119,P206,c(Q355304)) (Q3042,P206,c(Q355304)) (Q1794,P206,c(Q355304))
action filter_type
action find
entity prev_answer
relation P206
type Q355304
[ANSWERS]
['Q2119', 'P206', {'concept': 'Q355304'}] ['Q3042', 'P206', {'concept': 'Q355304'}] ['Q1794', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?e WHERE { ?d property:P206 ?e . VALUES ( ?d ) { ( resource:Q2119 ) ( resource:Q3042 ) ( resource:Q1794 ) } . ?e rdf:type ontology:Q355304 }
Neckar Rhine Main Bieber Hainbach Main
Are Rhine, Main and Main are situated nearby those cities
Rhine Main Main
action filter_type
action find
entity prev_answer
relation located next to body of water
type watercourse
['Mannheim', 'located next to body of water', {'concept': 'watercourse'}] ['Offenbach am Main', 'located next to body of water', {'concept': 'watercourse'}] ['Frankfurt', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?e WHERE { ?d property:located_next_to_body_of_water ?e . VALUES ( ?d ) { ( resource:Mannheim ) ( resource:Offenbach_am_Main ) ( resource:Frankfurt ) } . ?e rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q584
P403
Q355304
USER
Which watercourses have Rhine as their outlet ?
(c(Q355304),P403,Q584)
action filter_type
action find_reverse
entity Q584
relation P403
type Q355304
[{'concept': 'Q355304'}, 'P403', 'Q584']
SELECT DISTINCT ?h WHERE { ?h property:P403 resource:Q584 . ?h rdf:type ontology:Q355304 }
Rhine
action filter_type
action find_reverse
entity Rhine
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Rhine']
SELECT DISTINCT ?h WHERE { ?h property:mouth_of_the_watercourse resource:Rhine . ?h rdf:type ontology:watercourse }
[]
watercourse
Q1675 Q1667 Q563698
SYSTEM
Aare, Moselle, Lauter
Q554419 Q168696 Q873782 Q1996272 Q629218 Q563698 Q382574 Q5122 Q673824 Q1931191 Q5573862 Q554442 Q2350584 Q1667 Q1471049 Q667412 Q525148 Q2016398 Q688454 Q1772641 Q1462580 Q323387 Q673896 Q574477 Q690780 Q1670 Q1673 Q1675 Q557105 Q153521 Q22931 Q700081 Q1788597 Q826508 Q833024 Q525014 Q700083 Q2253493 Q562295 Q572072 Q481320 Q2543112 Q700095 Q151186 Q1364077 Q570612 Q504922 Q319634 Q672886 Q1670932 Q22860 Q708840 Q537966 Q668472 Q153394 Q875510 Q1728666 Q319649 Q1533758 Q704771 Q152484 Q828675 Q678064 Q639374 Q681992 Q1263975 Q650433 Q742563 Q1598624 Q648282 Q2365042 Q826237 Q830770 Q666946 Q1664 Q650359 Q668852 Q41986 Q14340 Q1210086 Q701645 Q454116 Q705057 Q688107 Q464556 Q464823 Q220040 Q663762 Q326366 Q188185 Q153945 Q103148 Q14339 Q671083 Q663562 Q680765
(c(Q355304),P403,Q584)
action filter_type
action find_reverse
entity Q584
relation P403
type Q355304
[ANSWERS] have Rhine as their outlet
[{'concept': 'Q355304'}, 'P403', 'Q584']
SELECT DISTINCT ?h WHERE { ?h property:P403 resource:Q584 . ?h rdf:type ontology:Q355304 }
Eckbach Nahe Rotbach Nonnenbach Selz Lauter Grand Canal d'Alsace Itter Landquart Michelsbach Sint-Jansbeek Wehra Stockacher Aach Moselle Frutz Ergolz Weschnitz Ohbach Ill Syre Moder Eisbach Vorderrhein Rehbach Möhlinbach Main Neckar Aare Ankerbach Pfrimm Speyerbach Murg Kriegbach Hohnderfeldbach Lauter Rench Elz Schwarzbach Alb Birsig Saalbach Walluf Kinzig Vinxtbach Villicher Bach Acher Emscher Dürrenbach Tamina Linzer Aach Kraichbach Erft Angerbach Ill Ahr Strunde Pulheimer Bach Möhlin Godesberger Bach Wied Sieg Melbbach Pfinz Wupper Biber Duffesbach Kander Schöpfebach Kleine Emscher Nette Sulzbach Flehbach Schwarzbach Wiese Ruhr Murg Hinterrhein Meuse Birs Dickopsbach Düssel Sissle Sauer Töss Wisper Alb Queich Modau Leimbach Wutach Lippe Lahn Thur Plessur Isenach Glatt
Aare, Moselle and Lauter have Rhine as their outlet
Aare Moselle Lauter
action filter_type
action find_reverse
entity Rhine
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Rhine']
SELECT DISTINCT ?h WHERE { ?h property:mouth_of_the_watercourse resource:Rhine . ?h rdf:type ontology:watercourse }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1667
P974
Q355304
USER
Which rivers or lakes are a tributary of that one ?
(Q1667,P974,c(Q355304))
action filter_type
action find
entity Q1667
relation P974
type Q355304
['Q1667', 'P974', {'concept': 'Q355304'}]
SELECT DISTINCT ?l WHERE { resource:Q1667 property:P974 ?l . ?l rdf:type ontology:Q355304 }
Moselle
action filter_type
action find
entity Moselle
relation tributary
type watercourse
['Moselle', 'tributary', {'concept': 'watercourse'}]
SELECT DISTINCT ?l WHERE { resource:Moselle property:tributary ?l . ?l rdf:type ontology:watercourse }
[]
watercourse
Clarification for simple ques.
Q1667
SYSTEM
Did you mean Moselle ?
Q1675 Q1667 Q563698
(Q1675,P974,c(Q355304)) (Q1667,P974,c(Q355304)) (Q563698,P974,c(Q355304))
[ANSWER]
['Q1675', 'P974', {'concept': 'Q355304'}] ['Q1667', 'P974', {'concept': 'Q355304'}] ['Q563698', 'P974', {'concept': 'Q355304'}]
SELECT DISTINCT ?l WHERE { resource:Q1667 property:P974 ?l . ?l rdf:type ontology:Q355304 }
Aare Moselle Lauter
Did you mean Moselle ?
Moselle
['Aare', 'tributary', {'concept': 'watercourse'}] ['Moselle', 'tributary', {'concept': 'watercourse'}] ['Lauter', 'tributary', {'concept': 'watercourse'}]
SELECT DISTINCT ?l WHERE { resource:Moselle property:tributary ?l . ?l rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1667,P974,c(Q355304))
['Q1667', 'P974', {'concept': 'Q355304'}]
['Moselle', 'tributary', {'concept': 'watercourse'}]
[]
Q1160441 Q677944 Q702418
SYSTEM
Meurthe, Kyll, Ruwer
Q522089 Q1047027 Q1366854 Q895661 Q525135 Q1160441 Q1192859 Q599492 Q153972 Q702418 Q179413 Q1475200 Q896979 Q677944 Q139516 Q158847
(Q1667,P974,c(Q355304))
action filter_type
action find
entity Q1667
relation P974
type Q355304
[ANSWERS] are a tributary of that one
['Q1667', 'P974', {'concept': 'Q355304'}]
SELECT DISTINCT ?l WHERE { resource:Q1667 property:P974 ?l . ?l rdf:type ontology:Q355304 }
Madon Orne Esch Alf Elzbach Meurthe Vologne Seille Saar Ruwer Salm Rupt de Mad Moselotte Kyll Lieser Sauer
Meurthe, Kyll and Ruwer are a tributary of that one
Meurthe Kyll Ruwer
action filter_type
action find
entity Moselle
relation tributary
type watercourse
['Moselle', 'tributary', {'concept': 'watercourse'}]
SELECT DISTINCT ?l WHERE { resource:Moselle property:tributary ?l . ?l rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21888210
P974
Q355304
USER
Are those ones a tributary of Jayah Bore Creek ?
(Q21888210,P974,Q1160441) (Q21888210,P974,Q677944) (Q21888210,P974,Q702418)
action is_in
entity prev_answer
action find
entity Q21888210
relation P974
['Q21888210', 'P974', 'Q1160441'] ['Q21888210', 'P974', 'Q677944'] ['Q21888210', 'P974', 'Q702418']
ASK WHERE { resource:Q21888210 property:P974 ?p . VALUES ( ?p ) { ( resource:Q522089 ) ( resource:Q1047027 ) ( resource:Q1366854 ) } }
Jayah Bore Creek
action is_in
entity prev_answer
action find
entity Jayah Bore Creek
relation tributary
['Jayah Bore Creek', 'tributary', 'Meurthe'] ['Jayah Bore Creek', 'tributary', 'Kyll'] ['Jayah Bore Creek', 'tributary', 'Ruwer']
ASK WHERE { resource:Jayah_Bore_Creek property:tributary ?p . VALUES ( ?p ) { ( resource:Madon ) ( resource:Orne ) ( resource:Esch ) } }
[]
watercourse
SYSTEM
NO
(Q21888210,P974,Q1160441) (Q21888210,P974,Q677944) (Q21888210,P974,Q702418)
action is_in
entity prev_answer
action find
entity Q21888210
relation P974
[ANSWER]
['Q21888210', 'P974', 'Q1160441'] ['Q21888210', 'P974', 'Q677944'] ['Q21888210', 'P974', 'Q702418']
ASK WHERE { resource:Q21888210 property:P974 ?p . VALUES ( ?p ) { ( resource:Q522089 ) ( resource:Q1047027 ) ( resource:Q1366854 ) } }
No
action is_in
entity prev_answer
action find
entity Jayah Bore Creek
relation tributary
['Jayah Bore Creek', 'tributary', 'Meurthe'] ['Jayah Bore Creek', 'tributary', 'Kyll'] ['Jayah Bore Creek', 'tributary', 'Ruwer']
ASK WHERE { resource:Jayah_Bore_Creek property:tributary ?p . VALUES ( ?p ) { ( resource:Madon ) ( resource:Orne ) ( resource:Esch ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P403
Q15324 Q355304
USER
Which bodies of water do exactly 4 watercourses flow into ?
(c(Q355304),P403,c(Q15324))
action equal
action find_reverse_tuple_counts
relation P403
type Q15324
type Q355304
value 4
[{'concept': 'Q355304'}, 'P403', {'concept': 'Q15324'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?t ) WHERE { ?b rdf:type ontology:Q15324 . ?u rdf:type ontology:Q355304 . ?u property:P403 ?b } GROUP BY ?b } . FILTER ( ?t = 4 ) }
action equal
action find_reverse_tuple_counts
relation mouth of the watercourse
type body of water
type watercourse
value 4
[{'concept': 'watercourse'}, 'mouth of the watercourse', {'concept': 'body of water'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?t ) WHERE { ?b rdf:type ontology:body_of_water . ?u rdf:type ontology:watercourse . ?u property:mouth_of_the_watercourse ?b } GROUP BY ?b } . FILTER ( ?t = 4 ) }
[]
body of water watercourse
Q795608 Q5605 Q23883
SYSTEM
Gulf of Honduras, Vistula Lagoon, Dead Sea
Q1866414 Q795608 Q14935920 Q5605 Q1362310 Q1747324 Q1726244 Q188203 Q23883
(c(Q355304),P403,c(Q15324))
action equal
action find_reverse_tuple_counts
relation P403
type Q15324
type Q355304
value 4
[ANSWERS]
[{'concept': 'Q355304'}, 'P403', {'concept': 'Q15324'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?t ) WHERE { ?b rdf:type ontology:Q15324 . ?u rdf:type ontology:Q355304 . ?u property:P403 ?b } GROUP BY ?b } . FILTER ( ?t = 4 ) }
Morecambe Bay Gulf of Honduras Vasse-Wonnerup Estuary Vistula Lagoon Tasman Bay Tauranga Harbour Rangaunu Harbour Bristol Channel Dead Sea
Which bodies of water exactly 4 watercourses flow into
Gulf of Honduras Vistula Lagoon Dead Sea
action equal
action find_reverse_tuple_counts
relation mouth of the watercourse
type body of water
type watercourse
value 4
[{'concept': 'watercourse'}, 'mouth of the watercourse', {'concept': 'body of water'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?t ) WHERE { ?b rdf:type ontology:body_of_water . ?u rdf:type ontology:watercourse . ?u property:mouth_of_the_watercourse ?b } GROUP BY ?b } . FILTER ( ?t = 4 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1675
P200
Q337567
USER
How many still waterss do Aare flow into ?
(c(Q337567),P200,Q1675)
action count
action filter_type
action find_reverse
entity Q1675
relation P200
type Q337567
[{'concept': 'Q337567'}, 'P200', 'Q1675']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:P200 resource:Q1675 . ?j rdf:type ontology:Q337567 }
Aare
action count
action filter_type
action find_reverse
entity Aare
relation lake inflows
type still waters
[{'concept': 'still waters'}, 'lake inflows', 'Aare']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:lake_inflows resource:Aare . ?j rdf:type ontology:still_waters }
[]
still waters
SYSTEM
4
Q5821829 Q14442 Q14426 Q14429
(c(Q337567),P200,Q1675)
action count
action filter_type
action find_reverse
entity Q1675
relation P200
type Q337567
[ANSWER]
[{'concept': 'Q337567'}, 'P200', 'Q1675']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:P200 resource:Q1675 . ?j rdf:type ontology:Q337567 }
Niederriedsee Lake Brienz Lake Thun Lake Biel
4
action count
action filter_type
action find_reverse
entity Aare
relation lake inflows
type still waters
[{'concept': 'still waters'}, 'lake inflows', 'Aare']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:lake_inflows resource:Aare . ?j rdf:type ontology:still_waters }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6088475
P200
Q337567
USER
Whose inflow source is Issyk River ?
(c(Q337567),P200,Q6088475)
action filter_type
action find_reverse
entity Q6088475
relation P200
type Q337567
[{'concept': 'Q337567'}, 'P200', 'Q6088475']
SELECT DISTINCT ?m WHERE { ?m property:P200 resource:Q6088475 . ?m rdf:type ontology:Q337567 }
Issyk River
action filter_type
action find_reverse
entity Issyk River
relation lake inflows
type still waters
[{'concept': 'still waters'}, 'lake inflows', 'Issyk River']
SELECT DISTINCT ?m WHERE { ?m property:lake_inflows resource:Issyk_River . ?m rdf:type ontology:still_waters }
[]
still waters
Q2387908
SYSTEM
Lake Issyk
Q2387908
(c(Q337567),P200,Q6088475)
action filter_type
action find_reverse
entity Q6088475
relation P200
type Q337567
On [ANSWER] is Issyk River
[{'concept': 'Q337567'}, 'P200', 'Q6088475']
SELECT DISTINCT ?m WHERE { ?m property:P200 resource:Q6088475 . ?m rdf:type ontology:Q337567 }
Lake Issyk
On Lake Issyk is Issyk River
Lake Issyk
action filter_type
action find_reverse
entity Issyk River
relation lake inflows
type still waters
[{'concept': 'still waters'}, 'lake inflows', 'Issyk River']
SELECT DISTINCT ?m WHERE { ?m property:lake_inflows resource:Issyk_River . ?m rdf:type ontology:still_waters }
[]