Simple Question (Direct)
Simple Question
Q842881
P200
Q355304
USER
Which watercourses flow into Lake Saint Pierre ?
(Q842881,P200,c(Q355304))
action filter_type
action find
entity Q842881
relation P200
type Q355304
['Q842881', 'P200', {'concept': 'Q355304'}]
SELECT DISTINCT ?r WHERE { resource:Q842881 property:P200 ?r . ?r rdf:type ontology:Q355304 }
Lake Saint Pierre
action filter_type
action find
entity Lake Saint Pierre
relation lake inflows
type watercourse
['Lake Saint Pierre', 'lake inflows', {'concept': 'watercourse'}]
SELECT DISTINCT ?r WHERE { resource:Lake_Saint_Pierre property:lake_inflows ?r . ?r rdf:type ontology:watercourse }
[]
watercourse
Q134750 Q844339 Q3433767
SYSTEM
Saint Lawrence River, Saint-François River, Nicolet River
Q844339 Q134750 Q3433767 Q2038996
(Q842881,P200,c(Q355304))
action filter_type
action find
entity Q842881
relation P200
type Q355304
River [ANSWERS] flow into Lake Saint Pierre
['Q842881', 'P200', {'concept': 'Q355304'}]
SELECT DISTINCT ?r WHERE { resource:Q842881 property:P200 ?r . ?r rdf:type ontology:Q355304 }
Saint-François River Saint Lawrence River Nicolet River Yamaska River
River Saint Lawrence River, Saint-François River and Nicolet River flow into Lake Saint Pierre
Saint Lawrence River Saint-François River Nicolet River
action filter_type
action find
entity Lake Saint Pierre
relation lake inflows
type watercourse
['Lake Saint Pierre', 'lake inflows', {'concept': 'watercourse'}]
SELECT DISTINCT ?r WHERE { resource:Lake_Saint_Pierre property:lake_inflows ?r . ?r rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q842881
P1435
Q37813
USER
Which ecosystem gives the heritage status of Lake Saint Pierre ?
(Q842881,P1435,c(Q37813))
action filter_type
action find
entity Q842881
relation P1435
type Q37813
['Q842881', 'P1435', {'concept': 'Q37813'}]
SELECT DISTINCT ?y WHERE { resource:Q842881 property:P1435 ?y . ?y rdf:type ontology:Q37813 }
Lake Saint Pierre
action filter_type
action find
entity Lake Saint Pierre
relation heritage status
type ecosystem
['Lake Saint Pierre', 'heritage status', {'concept': 'ecosystem'}]
SELECT DISTINCT ?y WHERE { resource:Lake_Saint_Pierre property:heritage_status ?y . ?y rdf:type ontology:ecosystem }
[]
ecosystem
Q20905436
SYSTEM
Ramsar site
Q20905436
(Q842881,P1435,c(Q37813))
action filter_type
action find
entity Q842881
relation P1435
type Q37813
[ANSWER] gives the heritage status of Lake Saint Pierre
['Q842881', 'P1435', {'concept': 'Q37813'}]
SELECT DISTINCT ?y WHERE { resource:Q842881 property:P1435 ?y . ?y rdf:type ontology:Q37813 }
Ramsar site
Ramsar site gives the heritage status of Lake Saint Pierre
Ramsar site
action filter_type
action find
entity Lake Saint Pierre
relation heritage status
type ecosystem
['Lake Saint Pierre', 'heritage status', {'concept': 'ecosystem'}]
SELECT DISTINCT ?y WHERE { resource:Lake_Saint_Pierre property:heritage_status ?y . ?y rdf:type ontology:ecosystem }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5184621
Q37813
USER
And how about Creston Valley Wildlife Management Area?
(Q5184621,P1435,c(Q37813))
action filter_type
action find
entity Q5184621
relation P1435
type Q37813
['Q5184621', 'P1435', {'concept': 'Q37813'}]
SELECT DISTINCT ?i WHERE { resource:Q5184621 property:P1435 ?i . ?i rdf:type ontology:Q37813 }
Creston Valley Wildlife Management Area
action filter_type
action find
entity Creston Valley Wildlife Management Area
relation heritage status
type ecosystem
['Creston Valley Wildlife Management Area', 'heritage status', {'concept': 'ecosystem'}]
SELECT DISTINCT ?i WHERE { resource:Creston_Valley_Wildlife_Management_Area property:heritage_status ?i . ?i rdf:type ontology:ecosystem }
[]
ecosystem
Q20905436
SYSTEM
Ramsar site
Q20905436
(Q5184621,P1435,c(Q37813))
action filter_type
action find
entity Q5184621
relation P1435
type Q37813
[ANSWER]
['Q5184621', 'P1435', {'concept': 'Q37813'}]
SELECT DISTINCT ?i WHERE { resource:Q5184621 property:P1435 ?i . ?i rdf:type ontology:Q37813 }
Ramsar site
Ramsar site
action filter_type
action find
entity Creston Valley Wildlife Management Area
relation heritage status
type ecosystem
['Creston Valley Wildlife Management Area', 'heritage status', {'concept': 'ecosystem'}]
SELECT DISTINCT ?i WHERE { resource:Creston_Valley_Wildlife_Management_Area property:heritage_status ?i . ?i rdf:type ontology:ecosystem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1435
Q15324 Q271669
USER
How many bodies of water or landforms takes on the heritage status of that ecosystem ?
(c(Q15324),P1435,Q20905436) (c(Q271669),P1435,Q20905436) (c(Q15324),P1435,Q20905436) (c(Q271669),P1435,Q20905436)
action count
action union
action filter_type
action find_reverse
entity Q20905436
relation P1435
type Q15324
action filter_type
action find_reverse
entity Q20905436
relation P1435
type Q271669
[{'concept': 'Q15324'}, 'P1435', 'Q20905436'] [{'concept': 'Q271669'}, 'P1435', 'Q20905436'] [{'concept': 'Q15324'}, 'P1435', 'Q20905436'] [{'concept': 'Q271669'}, 'P1435', 'Q20905436']
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { ?u property:P1435 resource:Q20905436 . ?u rdf:type ontology:Q15324 } UNION { ?u property:P1435 resource:Q20905436 . ?u rdf:type ontology:Q271669 } }
action count
action union
action filter_type
action find_reverse
entity Ramsar site
relation heritage status
type body of water
action filter_type
action find_reverse
entity Ramsar site
relation heritage status
type landform
[{'concept': 'body of water'}, 'heritage status', 'Ramsar site'] [{'concept': 'landform'}, 'heritage status', 'Ramsar site'] [{'concept': 'body of water'}, 'heritage status', 'Ramsar site'] [{'concept': 'landform'}, 'heritage status', 'Ramsar site']
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { ?u property:heritage_status resource:Ramsar_site . ?u rdf:type ontology:body_of_water } UNION { ?u property:heritage_status resource:Ramsar_site . ?u rdf:type ontology:landform } }
[]
body of water landform
SYSTEM
11
Q4843204 Q2879661 Q6943067 Q6786252 Q6778689 Q7295136 Q5594451 Q25336625 Q7673648 Q2837927 Q2879620
(c(Q15324),P1435,Q20905436) (c(Q271669),P1435,Q20905436) (c(Q15324),P1435,Q20905436) (c(Q271669),P1435,Q20905436)
action count
action union
action filter_type
action find_reverse
entity Q20905436
relation P1435
type Q15324
action filter_type
action find_reverse
entity Q20905436
relation P1435
type Q271669
[ANSWER]
[{'concept': 'Q15324'}, 'P1435', 'Q20905436'] [{'concept': 'Q271669'}, 'P1435', 'Q20905436'] [{'concept': 'Q15324'}, 'P1435', 'Q20905436'] [{'concept': 'Q271669'}, 'P1435', 'Q20905436']
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { ?u property:P1435 resource:Q20905436 . ?u rdf:type ontology:Q15324 } UNION { ?u property:P1435 resource:Q20905436 . ?u rdf:type ontology:Q271669 } }
Baie de l'Isle-Verte Malpeque Bay Musquodoboit Harbour Matchedash Bay Mary's Point Rasmussen Lowlands Grand Codroy Estuary Southern Bight-Minas Basin Tabusintac Lagoon and River Estuary Ortigueira estuary Shepody Bay
11
action count
action union
action filter_type
action find_reverse
entity Ramsar site
relation heritage status
type body of water
action filter_type
action find_reverse
entity Ramsar site
relation heritage status
type landform
[{'concept': 'body of water'}, 'heritage status', 'Ramsar site'] [{'concept': 'landform'}, 'heritage status', 'Ramsar site'] [{'concept': 'body of water'}, 'heritage status', 'Ramsar site'] [{'concept': 'landform'}, 'heritage status', 'Ramsar site']
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { ?u property:heritage_status resource:Ramsar_site . ?u rdf:type ontology:body_of_water } UNION { ?u property:heritage_status resource:Ramsar_site . ?u rdf:type ontology:landform } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P3173
Q355304 Q811979
USER
Which architectural structures have view to max number of watercourses ?
(c(Q811979),P3173,c(Q355304))
action argmax
action find_tuple_counts
relation P3173
type Q811979
type Q355304
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?y ) WHERE { ?m property:P3173 ?z . ?m rdf:type ontology:Q811979 . ?z rdf:type ontology:Q355304 } GROUP BY ?m } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?g ) WHERE { ?w property:P3173 ?c . ?w rdf:type ontology:Q811979 . ?c rdf:type ontology:Q355304 } GROUP BY ?w } . FILTER ( ?g = ?t ) }
action argmax
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?y ) WHERE { ?m property:offers_view_on ?z . ?m rdf:type ontology:architectural_structure . ?z rdf:type ontology:watercourse } GROUP BY ?m } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?g ) WHERE { ?w property:offers_view_on ?c . ?w rdf:type ontology:architectural_structure . ?c rdf:type ontology:watercourse } GROUP BY ?w } . FILTER ( ?g = ?t ) }
[]
watercourse architectural structure
Q26196531
SYSTEM
Washburn Point
Q26196531
(c(Q811979),P3173,c(Q355304))
action argmax
action find_tuple_counts
relation P3173
type Q811979
type Q355304
[ANSWER] have view to max number of watercourses
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?y ) WHERE { ?m property:P3173 ?z . ?m rdf:type ontology:Q811979 . ?z rdf:type ontology:Q355304 } GROUP BY ?m } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?g ) WHERE { ?w property:P3173 ?c . ?w rdf:type ontology:Q811979 . ?c rdf:type ontology:Q355304 } GROUP BY ?w } . FILTER ( ?g = ?t ) }
Washburn Point
Washburn Point have view to max number of watercourses
Washburn Point
action argmax
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?y ) WHERE { ?m property:offers_view_on ?z . ?m rdf:type ontology:architectural_structure . ?z rdf:type ontology:watercourse } GROUP BY ?m } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?g ) WHERE { ?w property:offers_view_on ?c . ?w rdf:type ontology:architectural_structure . ?c rdf:type ontology:watercourse } GROUP BY ?w } . FILTER ( ?g = ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q613057 Q26196531
P17
Q15617994
USER
Which administrative territories are Washburn Point or South African National Space Agency present in ?
OR((Q26196531,P17,c(Q15617994)), (Q613057,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26196531
relation P17
action find
entity Q613057
relation P17
type Q15617994
{'OR': [['Q26196531', 'P17', {'concept': 'Q15617994'}], ['Q613057', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q26196531 property:P17 ?e } UNION { resource:Q613057 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
South African National Space Agency Washburn Point
action filter_type
action union
action find
entity Washburn Point
relation country
action find
entity South African National Space Agency
relation country
type designation for an administrative territorial entity
{'OR': [['Washburn Point', 'country', {'concept': 'designation for an administrative territorial entity'}], ['South African National Space Agency', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Washburn_Point property:country ?e } UNION { resource:South_African_National_Space_Agency property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q258
SYSTEM
United States of America, South Africa
Q30 Q258
OR((Q26196531,P17,c(Q15617994)), (Q613057,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26196531
relation P17
action find
entity Q613057
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q26196531', 'P17', {'concept': 'Q15617994'}], ['Q613057', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q26196531 property:P17 ?e } UNION { resource:Q613057 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
United States of America South Africa
Which administrative territories are Washburn Point or South African National Space Agency present in
United States of America South Africa
action filter_type
action union
action find
entity Washburn Point
relation country
action find
entity South African National Space Agency
relation country
type designation for an administrative territorial entity
{'OR': [['Washburn Point', 'country', {'concept': 'designation for an administrative territorial entity'}], ['South African National Space Agency', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Washburn_Point property:country ?e } UNION { resource:South_African_National_Space_Agency property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q1048835
USER
How many political territories have diplomatic relationships with that administrative territory ?
(Q258,P530,c(Q1048835))
['Q258', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7565360 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
['South Africa', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:South_Africa property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q30
SYSTEM
Did you mean United States of America ?
(Q30,P530,c(Q1048835)) (Q258,P530,c(Q1048835))
[ANSWER]
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q258', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7565360 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Did you mean United States of America ?
United States of America
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['South Africa', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:South_Africa property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant South Africa. Could you tell me the answer for that?
(Q258,P530,c(Q1048835))
Q258
['Q258', 'P530', {'concept': 'Q1048835'}]
['South Africa', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
3
Q183 Q408 Q16
(Q258,P530,c(Q1048835))
[ANSWER]
['Q258', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7565360 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Germany Australia Canada
3
['South Africa', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:South_Africa property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P750
Q15416
USER
Which television program has United States of America as its distributor ?
(c(Q15416),P750,Q30)
action filter_type
action find_reverse
entity Q30
relation P750
type Q15416
[{'concept': 'Q15416'}, 'P750', 'Q30']
SELECT DISTINCT ?b WHERE { ?b property:P750 resource:Q30 . ?b rdf:type ontology:Q15416 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation distributor
type television program
[{'concept': 'television program'}, 'distributor', 'United States of America']
SELECT DISTINCT ?b WHERE { ?b property:distributor resource:United_States_of_America . ?b rdf:type ontology:television_program }
[]
television program
Q53113
SYSTEM
High School Musical 2
Q53113
(c(Q15416),P750,Q30)
action filter_type
action find_reverse
entity Q30
relation P750
type Q15416
[ANSWER] has United States of America as its distributor
[{'concept': 'Q15416'}, 'P750', 'Q30']
SELECT DISTINCT ?b WHERE { ?b property:P750 resource:Q30 . ?b rdf:type ontology:Q15416 }
High School Musical 2
High School Musical 2 has United States of America as its distributor
High School Musical 2
action filter_type
action find_reverse
entity United States of America
relation distributor
type television program
[{'concept': 'television program'}, 'distributor', 'United States of America']
SELECT DISTINCT ?b WHERE { ?b property:distributor resource:United_States_of_America . ?b rdf:type ontology:television_program }
[]