Simple Question (Direct)
Simple Question
Q835333
P974
Q355304
USER
Which watercourses are the tributaries of Niers ?
(Q835333,P974,c(Q355304))
action filter_type
action find
entity Q835333
relation P974
type Q355304
['Q835333', 'P974', {'concept': 'Q355304'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q355304 . resource:Q835333 property:P974 ?j }
Niers
action filter_type
action find
entity Niers
relation tributary
type watercourse
['Niers', 'tributary', {'concept': 'watercourse'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:watercourse . resource:Niers property:tributary ?j }
[]
watercourse
Q820321 Q1499477 Q1484004
SYSTEM
Kendel, Gelderner Fleuth, Kervenheimer Mühlenfleuth
Q261717 Q1723568 Q763949 Q820321 Q1499477 Q252077 Q1484004 Q1674800
(Q835333,P974,c(Q355304))
action filter_type
action find
entity Q835333
relation P974
type Q355304
The tributaries of Niers are the [ANSWERS]
['Q835333', 'P974', {'concept': 'Q355304'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q355304 . resource:Q835333 property:P974 ?j }
Gladbach Kanal III3b Köhm Kendel Gelderner Fleuth Hammer Bach Kervenheimer Mühlenfleuth Issumer Fleuth
The tributaries of Niers are the Kendel, Gelderner Fleuth and Kervenheimer Mühlenfleuth
Kendel Gelderner Fleuth Kervenheimer Mühlenfleuth
action filter_type
action find
entity Niers
relation tributary
type watercourse
['Niers', 'tributary', {'concept': 'watercourse'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:watercourse . resource:Niers property:tributary ?j }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1484004
P403
Q355304
USER
Where does that one drain into ?
(Q1484004,P403,c(Q355304))
action filter_type
action find
entity Q1484004
relation P403
type Q355304
['Q1484004', 'P403', {'concept': 'Q355304'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q355304 . resource:Q1484004 property:P403 ?y }
Kervenheimer Mühlenfleuth
action filter_type
action find
entity Kervenheimer Mühlenfleuth
relation mouth of the watercourse
type watercourse
['Kervenheimer Mühlenfleuth', 'mouth of the watercourse', {'concept': 'watercourse'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:watercourse . resource:Kervenheimer_Mühlenfleuth property:mouth_of_the_watercourse ?y }
[]
watercourse
Clarification for simple ques.
Q1484004
SYSTEM
Did you mean Kervenheimer Mühlenfleuth ?
Q820321 Q1499477 Q1484004
(Q820321,P403,c(Q355304)) (Q1499477,P403,c(Q355304)) (Q1484004,P403,c(Q355304))
[ANSWER]
['Q820321', 'P403', {'concept': 'Q355304'}] ['Q1499477', 'P403', {'concept': 'Q355304'}] ['Q1484004', 'P403', {'concept': 'Q355304'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q355304 . resource:Q1484004 property:P403 ?y }
Kendel Gelderner Fleuth Kervenheimer Mühlenfleuth
Did you mean Kervenheimer Mühlenfleuth ?
Kervenheimer Mühlenfleuth
['Kendel', 'mouth of the watercourse', {'concept': 'watercourse'}] ['Gelderner Fleuth', 'mouth of the watercourse', {'concept': 'watercourse'}] ['Kervenheimer Mühlenfleuth', 'mouth of the watercourse', {'concept': 'watercourse'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:watercourse . resource:Kervenheimer_Mühlenfleuth property:mouth_of_the_watercourse ?y }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1484004,P403,c(Q355304))
['Q1484004', 'P403', {'concept': 'Q355304'}]
['Kervenheimer Mühlenfleuth', 'mouth of the watercourse', {'concept': 'watercourse'}]
[]
Q835333
SYSTEM
Niers
Q835333
(Q1484004,P403,c(Q355304))
action filter_type
action find
entity Q1484004
relation P403
type Q355304
[ANSWER] that one drains into
['Q1484004', 'P403', {'concept': 'Q355304'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q355304 . resource:Q1484004 property:P403 ?y }
Niers
Niers that one drains into
Niers
action filter_type
action find
entity Kervenheimer Mühlenfleuth
relation mouth of the watercourse
type watercourse
['Kervenheimer Mühlenfleuth', 'mouth of the watercourse', {'concept': 'watercourse'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:watercourse . resource:Kervenheimer_Mühlenfleuth property:mouth_of_the_watercourse ?y }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P469
Q23397 Q355304
USER
Which watercourses flows through greater number of lakes than that watercourse ?
(c(Q355304),P469,c(Q23397))
action greater
action find_tuple_counts
relation P469
type Q355304
type Q23397
action count
action filter_type
action find
entity Q835333
relation P469
type Q355304
[{'concept': 'Q355304'}, 'P469', {'concept': 'Q23397'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Q835333 property:P469 ?e . ?e rdf:type ontology:Q355304 } } . FILTER ( ?f > ?u ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?f ) WHERE { ?a rdf:type ontology:Q355304 . ?i rdf:type ontology:Q23397 . ?a property:P469 ?i } GROUP BY ?a } }
action greater
action find_tuple_counts
relation lakes on river
type watercourse
type lake
action count
action filter_type
action find
entity Niers
relation lakes on river
type watercourse
[{'concept': 'watercourse'}, 'lakes on river', {'concept': 'lake'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Niers property:lakes_on_river ?e . ?e rdf:type ontology:watercourse } } . FILTER ( ?f > ?u ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?f ) WHERE { ?a rdf:type ontology:watercourse . ?i rdf:type ontology:lake . ?a property:lakes_on_river ?i } GROUP BY ?a } }
[]
lake watercourse
Q1497 Q3411 Q80240
SYSTEM
Mississippi River, Mackenzie River, Ural River
Q1888146 Q2279579 Q3458654 Q1429523 Q5507324 Q18150029 Q2668113 Q2368048 Q82776 Q75468 Q748195 Q859274 Q220839 Q6661118 Q670886 Q283622 Q4059960 Q3732920 Q3275381 Q1076530 Q1524764 Q1164945 Q1343164 Q3512615 Q2566970 Q1273955 Q2598623 Q940488 Q626 Q128350 Q80240 Q2936036 Q1430986 Q2155696 Q1710848 Q1046455 Q4143776 Q3720471 Q1497 Q517670 Q3411 Q15111619 Q1478566 Q35591 Q2626727 Q192567 Q4249198 Q1715173 Q6990897 Q3720244 Q3773325 Q3179104 Q182042 Q3458740 Q5755799 Q4532009 Q5872598 Q1485122 Q1514693 Q770781 Q4407311 Q273456 Q1048219 Q782845 Q7516332
(c(Q355304),P469,c(Q23397))
action greater
action find_tuple_counts
relation P469
type Q355304
type Q23397
action count
action filter_type
action find
entity Q835333
relation P469
type Q355304
[ANSWERS] flow through greater number of lakes than that watercourse
[{'concept': 'Q355304'}, 'P469', {'concept': 'Q23397'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Q835333 property:P469 ?e . ?e rdf:type ontology:Q355304 } } . FILTER ( ?f > ?u ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?f ) WHERE { ?a rdf:type ontology:Q355304 . ?i rdf:type ontology:Q23397 . ?a property:P469 ?i } GROUP BY ?a } }
Kaministiquia River Shire River Huahum River Karatal River Fui River Cochrane River Ajaguz River Tes River Terek River Ljanselva Ruzizi River Big Sioux River Luvua River Llancahue River Lorze Atrek River Aksu River Ulluchay River Astarachay Sió Michipicoten River Nipigon River Leysse Sumgayit River White River Saint Louis River Pirsaat River St. Marys River Volga Lukuga River Ural River Canal de Savières Sefīd-Rūd Magog River Pic River Lepsy River Gorgan Shura-Ozen River Mississippi River Emba River Mackenzie River Muuramenjoki Santa Cruz River Tigris Kura River Ili River Qusar River Jökulsá á Brú Nemadji River Rubas River Aji Chay Kalambo River Kuma River Pascua River Barabduchai Enco River Simineh River Pigeon River Malagarasi River Sulak River San Pedro River Omo River Waikato River Awash River Zarriné-Rūd
Mississippi River, Mackenzie River and Ural River flow through greater number of lakes than that watercourse
Mississippi River Mackenzie River Ural River
action greater
action find_tuple_counts
relation lakes on river
type watercourse
type lake
action count
action filter_type
action find
entity Niers
relation lakes on river
type watercourse
[{'concept': 'watercourse'}, 'lakes on river', {'concept': 'lake'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { resource:Niers property:lakes_on_river ?e . ?e rdf:type ontology:watercourse } } . FILTER ( ?f > ?u ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?f ) WHERE { ?a rdf:type ontology:watercourse . ?i rdf:type ontology:lake . ?a property:lakes_on_river ?i } GROUP BY ?a } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P469
Q337567 Q23397 Q355304
USER
How many watercourses flow out of atleast 5 still waterss or lakes ?
(c(Q355304),P469,c(Q337567)|c(Q23397))
action count
action atleast
action union
action find_tuple_counts
relation P469
type Q355304
type Q337567
action find_tuple_counts
relation P469
type Q355304
type Q23397
value 5
[{'concept': 'Q355304'}, 'P469', [{'concept': 'Q337567'}, {'concept': 'Q23397'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?r WHERE { { ?r property:P469 ?i . ?r rdf:type ontology:Q355304 . ?i rdf:type ontology:Q23397 } UNION { ?r rdf:type ontology:Q355304 . ?i rdf:type ontology:Q337567 . ?r property:P469 ?i } } GROUP BY ?r } . FILTER ( ?w >= 5 ) }
action count
action atleast
action union
action find_tuple_counts
relation lakes on river
type watercourse
type still waters
action find_tuple_counts
relation lakes on river
type watercourse
type lake
value 5
[{'concept': 'watercourse'}, 'lakes on river', [{'concept': 'still waters'}, {'concept': 'lake'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?r WHERE { { ?r property:lakes_on_river ?i . ?r rdf:type ontology:watercourse . ?i rdf:type ontology:lake } UNION { ?r rdf:type ontology:watercourse . ?i rdf:type ontology:still_waters . ?r property:lakes_on_river ?i } } GROUP BY ?r } . FILTER ( ?w >= 5 ) }
[]
still waters lake watercourse
SYSTEM
3
Q1108116 Q1497 Q1688
(c(Q355304),P469,c(Q337567)|c(Q23397))
action count
action atleast
action union
action find_tuple_counts
relation P469
type Q355304
type Q337567
action find_tuple_counts
relation P469
type Q355304
type Q23397
value 5
[ANSWER]
[{'concept': 'Q355304'}, 'P469', [{'concept': 'Q337567'}, {'concept': 'Q23397'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?r WHERE { { ?r property:P469 ?i . ?r rdf:type ontology:Q355304 . ?i rdf:type ontology:Q23397 } UNION { ?r rdf:type ontology:Q355304 . ?i rdf:type ontology:Q337567 . ?r property:P469 ?i } } GROUP BY ?r } . FILTER ( ?w >= 5 ) }
Colentina River Mississippi River Elde
3
action count
action atleast
action union
action find_tuple_counts
relation lakes on river
type watercourse
type still waters
action find_tuple_counts
relation lakes on river
type watercourse
type lake
value 5
[{'concept': 'watercourse'}, 'lakes on river', [{'concept': 'still waters'}, {'concept': 'lake'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?r WHERE { { ?r property:lakes_on_river ?i . ?r rdf:type ontology:watercourse . ?i rdf:type ontology:lake } UNION { ?r rdf:type ontology:watercourse . ?i rdf:type ontology:still_waters . ?r property:lakes_on_river ?i } } GROUP BY ?r } . FILTER ( ?w >= 5 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1661025 Q3411
P17
Q1048835
USER
Which political territories are Mackenzie River and Rhineland located in ?
AND((Q3411,P17,c(Q1048835)), (Q1661025,P17,c(Q1048835)))
action filter_type
action intersection
action find
entity Q3411
relation P17
action find
entity Q1661025
relation P17
type Q1048835
{'AND': [['Q3411', 'P17', {'concept': 'Q1048835'}], ['Q1661025', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { resource:Q3411 property:P17 ?d . resource:Q1661025 property:P17 ?d . ?d rdf:type ontology:Q1048835 }
Rhineland Mackenzie River
action filter_type
action intersection
action find
entity Mackenzie River
relation country
action find
entity Rhineland
relation country
type political territorial entity
{'AND': [['Mackenzie River', 'country', {'concept': 'political territorial entity'}], ['Rhineland', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { resource:Mackenzie_River property:country ?d . resource:Rhineland property:country ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
AND((Q3411,P17,c(Q1048835)), (Q1661025,P17,c(Q1048835)))
action filter_type
action intersection
action find
entity Q3411
relation P17
action find
entity Q1661025
relation P17
type Q1048835
Which political territories is Mackenzie River and Rhineland located in
{'AND': [['Q3411', 'P17', {'concept': 'Q1048835'}], ['Q1661025', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { resource:Q3411 property:P17 ?d . resource:Q1661025 property:P17 ?d . ?d rdf:type ontology:Q1048835 }
Canada
Which political territories is Mackenzie River and Rhineland located in
Canada
action filter_type
action intersection
action find
entity Mackenzie River
relation country
action find
entity Rhineland
relation country
type political territorial entity
{'AND': [['Mackenzie River', 'country', {'concept': 'political territorial entity'}], ['Rhineland', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { resource:Mackenzie_River property:country ?d . resource:Rhineland property:country ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3411 Q4140710
P469
Q23397
USER
How many lakes do Mackenzie River or Samur flow into ?
(Q3411,P469,c(Q23397)) (Q4140710,P469,c(Q23397))
action count
action union
action filter_type
action find
entity Q3411
relation P469
type Q23397
action filter_type
action find
entity Q4140710
relation P469
type Q23397
['Q3411', 'P469', {'concept': 'Q23397'}] ['Q4140710', 'P469', {'concept': 'Q23397'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { resource:Q3411 property:P469 ?d . ?d rdf:type ontology:Q23397 } UNION { resource:Q4140710 property:P469 ?d . ?d rdf:type ontology:Q23397 } }
Mackenzie River Samur
action count
action union
action filter_type
action find
entity Mackenzie River
relation lakes on river
type lake
action filter_type
action find
entity Samur
relation lakes on river
type lake
['Mackenzie River', 'lakes on river', {'concept': 'lake'}] ['Samur', 'lakes on river', {'concept': 'lake'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { resource:Mackenzie_River property:lakes_on_river ?d . ?d rdf:type ontology:lake } UNION { resource:Samur property:lakes_on_river ?d . ?d rdf:type ontology:lake } }
[]
lake
SYSTEM
2
Q5539 Q5484
(Q3411,P469,c(Q23397)) (Q4140710,P469,c(Q23397))
action count
action union
action filter_type
action find
entity Q3411
relation P469
type Q23397
action filter_type
action find
entity Q4140710
relation P469
type Q23397
[ANSWER]
['Q3411', 'P469', {'concept': 'Q23397'}] ['Q4140710', 'P469', {'concept': 'Q23397'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { resource:Q3411 property:P469 ?d . ?d rdf:type ontology:Q23397 } UNION { resource:Q4140710 property:P469 ?d . ?d rdf:type ontology:Q23397 } }
Great Slave Lake Caspian Sea
2
action count
action union
action filter_type
action find
entity Mackenzie River
relation lakes on river
type lake
action filter_type
action find
entity Samur
relation lakes on river
type lake
['Mackenzie River', 'lakes on river', {'concept': 'lake'}] ['Samur', 'lakes on river', {'concept': 'lake'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { resource:Mackenzie_River property:lakes_on_river ?d . ?d rdf:type ontology:lake } UNION { resource:Samur property:lakes_on_river ?d . ?d rdf:type ontology:lake } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1497
P403
Q15324
USER
Where does Mississippi River drain into ?
(Q1497,P403,c(Q15324))
action filter_type
action find
entity Q1497
relation P403
type Q15324
['Q1497', 'P403', {'concept': 'Q15324'}]
SELECT DISTINCT ?o WHERE { resource:Q1497 property:P403 ?o . ?o rdf:type ontology:Q15324 }
Mississippi River
action filter_type
action find
entity Mississippi River
relation mouth of the watercourse
type body of water
['Mississippi River', 'mouth of the watercourse', {'concept': 'body of water'}]
SELECT DISTINCT ?o WHERE { resource:Mississippi_River property:mouth_of_the_watercourse ?o . ?o rdf:type ontology:body_of_water }
[]
body of water
Q12630
SYSTEM
Gulf of Mexico
Q12630
(Q1497,P403,c(Q15324))
action filter_type
action find
entity Q1497
relation P403
type Q15324
Mississippi River drains into the [ANSWER]
['Q1497', 'P403', {'concept': 'Q15324'}]
SELECT DISTINCT ?o WHERE { resource:Q1497 property:P403 ?o . ?o rdf:type ontology:Q15324 }
Gulf of Mexico
Mississippi River drains into the Gulf of Mexico
Gulf of Mexico
action filter_type
action find
entity Mississippi River
relation mouth of the watercourse
type body of water
['Mississippi River', 'mouth of the watercourse', {'concept': 'body of water'}]
SELECT DISTINCT ?o WHERE { resource:Mississippi_River property:mouth_of_the_watercourse ?o . ?o rdf:type ontology:body_of_water }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1497
P30
Q2221906
USER
Which geographic location is Mississippi River a part of ?
(Q1497,P30,c(Q2221906))
action filter_type
action find
entity Q1497
relation P30
type Q2221906
['Q1497', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q2221906 . resource:Q1497 property:P30 ?k }
Mississippi River
action filter_type
action find
entity Mississippi River
relation continent
type geographic location
['Mississippi River', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:geographic_location . resource:Mississippi_River property:continent ?k }
[]
geographic location
Q828
SYSTEM
Americas
Q828
(Q1497,P30,c(Q2221906))
action filter_type
action find
entity Q1497
relation P30
type Q2221906
The [ANSWER] is Mississippi River a part of
['Q1497', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q2221906 . resource:Q1497 property:P30 ?k }
Americas
The Americas is Mississippi River a part of
Americas
action filter_type
action find
entity Mississippi River
relation continent
type geographic location
['Mississippi River', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:geographic_location . resource:Mississippi_River property:continent ?k }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q281563
Q2221906
USER
And what about Cranton Bay?
(Q281563,P30,c(Q2221906))
action filter_type
action find
entity Q281563
relation P30
type Q2221906
['Q281563', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2221906 . resource:Q281563 property:P30 ?g }
Cranton Bay
action filter_type
action find
entity Cranton Bay
relation continent
type geographic location
['Cranton Bay', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:geographic_location . resource:Cranton_Bay property:continent ?g }
[]
geographic location
Q51
SYSTEM
Antarctica
Q51
(Q281563,P30,c(Q2221906))
action filter_type
action find
entity Q281563
relation P30
type Q2221906
[ANSWER]
['Q281563', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2221906 . resource:Q281563 property:P30 ?g }
Antarctica
Antarctica
action filter_type
action find
entity Cranton Bay
relation continent
type geographic location
['Cranton Bay', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:geographic_location . resource:Cranton_Bay property:continent ?g }
[]