Simple Question (Direct)
Simple Question
Q4014528
P39
Q12737077
USER
Which occupation was a position occupied by Virginio Brivio ?
(Q4014528,P39,c(Q12737077))
action filter_type
action find
entity Q4014528
relation P39
type Q12737077
['Q4014528', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q4014528 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
Virginio Brivio
action filter_type
action find
entity Virginio Brivio
relation position held
type occupation
['Virginio Brivio', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Virginio_Brivio property:position_held ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q4014528,P39,c(Q12737077))
action filter_type
action find
entity Q4014528
relation P39
type Q12737077
The [ANSWER] was a position occupied by Virginio Brivio
['Q4014528', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q4014528 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
mayor
The mayor was a position occupied by Virginio Brivio
mayor
action filter_type
action find
entity Virginio Brivio
relation position held
type occupation
['Virginio Brivio', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Virginio_Brivio property:position_held ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4014528
P6
Q15617994
USER
Which administrative territory has a government lead by Virginio Brivio ?
(c(Q15617994),P6,Q4014528)
action filter_type
action find_reverse
entity Q4014528
relation P6
type Q15617994
[{'concept': 'Q15617994'}, 'P6', 'Q4014528']
SELECT DISTINCT ?o WHERE { ?o property:P6 resource:Q4014528 . ?o rdf:type ontology:Q15617994 }
Virginio Brivio
action filter_type
action find_reverse
entity Virginio Brivio
relation head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'head of government', 'Virginio Brivio']
SELECT DISTINCT ?o WHERE { ?o property:head_of_government resource:Virginio_Brivio . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q6237
SYSTEM
Lecco
Q6237
(c(Q15617994),P6,Q4014528)
action filter_type
action find_reverse
entity Q4014528
relation P6
type Q15617994
[ANSWER] has a government lead by Virginio Brivio
[{'concept': 'Q15617994'}, 'P6', 'Q4014528']
SELECT DISTINCT ?o WHERE { ?o property:P6 resource:Q4014528 . ?o rdf:type ontology:Q15617994 }
Lecco
Lecco has a government lead by Virginio Brivio
Lecco
action filter_type
action find_reverse
entity Virginio Brivio
relation head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'head of government', 'Virginio Brivio']
SELECT DISTINCT ?o WHERE { ?o property:head_of_government resource:Virginio_Brivio . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6237
P206
Q337567
USER
Which still waters is situated in the neighbourhood of that administrative territory ?
(Q6237,P206,c(Q337567))
action filter_type
action find
entity Q6237
relation P206
type Q337567
['Q6237', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ?x WHERE { resource:Q6237 property:P206 ?x . ?x rdf:type ontology:Q337567 }
Lecco
action filter_type
action find
entity Lecco
relation located next to body of water
type still waters
['Lecco', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ?x WHERE { resource:Lecco property:located_next_to_body_of_water ?x . ?x rdf:type ontology:still_waters }
[]
still waters
Q15523
SYSTEM
Lake Como
Q15523
(Q6237,P206,c(Q337567))
action filter_type
action find
entity Q6237
relation P206
type Q337567
Of [ANSWER] is situated in the neighbourhood of that administrative territory
['Q6237', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ?x WHERE { resource:Q6237 property:P206 ?x . ?x rdf:type ontology:Q337567 }
Lake Como
Of Lake Como is situated in the neighbourhood of that administrative territory
Lake Como
action filter_type
action find
entity Lecco
relation located next to body of water
type still waters
['Lecco', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ?x WHERE { resource:Lecco property:located_next_to_body_of_water ?x . ?x rdf:type ontology:still_waters }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q9336227 Q6237
P206 P138
Q337567
USER
Which still waterss are situated nearby Lecco or are namesakes of Oldenburger See und Umgebung ?
OR((Q6237,P206,c(Q337567)), (Q9336227,P138,c(Q337567)))
action filter_type
action union
action find
entity Q6237
relation P206
action find
entity Q9336227
relation P138
type Q337567
{'OR': [['Q6237', 'P206', {'concept': 'Q337567'}], ['Q9336227', 'P138', {'concept': 'Q337567'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q6237 property:P206 ?k } UNION { resource:Q9336227 property:P138 ?k } } . ?k rdf:type ontology:Q337567 }
Oldenburger See und Umgebung Lecco
action filter_type
action union
action find
entity Lecco
relation located next to body of water
action find
entity Oldenburger See und Umgebung
relation named after
type still waters
{'OR': [['Lecco', 'located next to body of water', {'concept': 'still waters'}], ['Oldenburger See und Umgebung', 'named after', {'concept': 'still waters'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Lecco property:located_next_to_body_of_water ?k } UNION { resource:Oldenburger_See_und_Umgebung property:named_after ?k } } . ?k rdf:type ontology:still_waters }
[]
still waters
Q2018667 Q15523
SYSTEM
Oldenburger See, Lake Como
Q2018667 Q15523
OR((Q6237,P206,c(Q337567)), (Q9336227,P138,c(Q337567)))
action filter_type
action union
action find
entity Q6237
relation P206
action find
entity Q9336227
relation P138
type Q337567
[ANSWERS] are situated nearby Lecco or are namesakes of Oldenburger See und Umgebung
{'OR': [['Q6237', 'P206', {'concept': 'Q337567'}], ['Q9336227', 'P138', {'concept': 'Q337567'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q6237 property:P206 ?k } UNION { resource:Q9336227 property:P138 ?k } } . ?k rdf:type ontology:Q337567 }
Oldenburger See Lake Como
Oldenburger See and Lake Como are situated nearby Lecco or are namesakes of Oldenburger See und Umgebung
Oldenburger See Lake Como
action filter_type
action union
action find
entity Lecco
relation located next to body of water
action find
entity Oldenburger See und Umgebung
relation named after
type still waters
{'OR': [['Lecco', 'located next to body of water', {'concept': 'still waters'}], ['Oldenburger See und Umgebung', 'named after', {'concept': 'still waters'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Lecco property:located_next_to_body_of_water ?k } UNION { resource:Oldenburger_See_und_Umgebung property:named_after ?k } } . ?k rdf:type ontology:still_waters }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q15523
P206
Q15617994 Q486972
USER
How many administrative territories or human settlements are situated close to Lake Como ?
(c(Q15617994),P206,Q15523) (c(Q486972),P206,Q15523)
action count
action union
action filter_type
action find_reverse
entity Q15523
relation P206
type Q15617994
action filter_type
action find_reverse
entity Q15523
relation P206
type Q486972
[{'concept': 'Q15617994'}, 'P206', 'Q15523'] [{'concept': 'Q486972'}, 'P206', 'Q15523']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15617994 ) ( ontology:Q486972 ) } }
Lake Como
action count
action union
action filter_type
action find_reverse
entity Lake Como
relation located next to body of water
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Lake Como
relation located next to body of water
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', 'Lake Como'] [{'concept': 'human settlement'}, 'located next to body of water', 'Lake Como']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ?y . VALUES ( ?y ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:human_settlement ) } }
[]
designation for an administrative territorial entity human settlement
SYSTEM
5
Q244095 Q10729538 Q42265 Q6237 Q47612
(c(Q15617994),P206,Q15523) (c(Q486972),P206,Q15523)
action count
action union
action filter_type
action find_reverse
entity Q15523
relation P206
type Q15617994
action filter_type
action find_reverse
entity Q15523
relation P206
type Q486972
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', 'Q15523'] [{'concept': 'Q486972'}, 'P206', 'Q15523']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15617994 ) ( ontology:Q486972 ) } }
Bellagio Gravedona Abbadia Lariana Lecco Domaso
5
action count
action union
action filter_type
action find_reverse
entity Lake Como
relation located next to body of water
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Lake Como
relation located next to body of water
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', 'Lake Como'] [{'concept': 'human settlement'}, 'located next to body of water', 'Lake Como']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ?y . VALUES ( ?y ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:human_settlement ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15523
P403
Q355304
USER
Which watercourses have Lake Como as their outlet ?
(c(Q355304),P403,Q15523)
action filter_type
action find_reverse
entity Q15523
relation P403
type Q355304
[{'concept': 'Q355304'}, 'P403', 'Q15523']
SELECT DISTINCT ?x WHERE { ?x property:P403 resource:Q15523 . ?x rdf:type ontology:Q355304 }
Lake Como
action filter_type
action find_reverse
entity Lake Como
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Lake Como']
SELECT DISTINCT ?x WHERE { ?x property:mouth_of_the_watercourse resource:Lake_Como . ?x rdf:type ontology:watercourse }
[]
watercourse
Q869635 Q2575760 Q3694664
SYSTEM
Mera, Breggia, Liro
Q3694664 Q869635 Q519757 Q826652 Q3695087 Q2575760
(c(Q355304),P403,Q15523)
action filter_type
action find_reverse
entity Q15523
relation P403
type Q355304
[ANSWERS] have Lake Como as their outlet
[{'concept': 'Q355304'}, 'P403', 'Q15523']
SELECT DISTINCT ?x WHERE { ?x property:P403 resource:Q15523 . ?x rdf:type ontology:Q355304 }
Liro Mera Albano Pioverna Cosia Breggia
Mera, Breggia and Liro have Lake Como as their outlet
Mera Breggia Liro
action filter_type
action find_reverse
entity Lake Como
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Lake Como']
SELECT DISTINCT ?x WHERE { ?x property:mouth_of_the_watercourse resource:Lake_Como . ?x rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15523
P201
Q355304
USER
Which watercourse outflows from Lake Como ?
(Q15523,P201,c(Q355304))
action filter_type
action find
entity Q15523
relation P201
type Q355304
['Q15523', 'P201', {'concept': 'Q355304'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q355304 . resource:Q15523 property:P201 ?e }
Lake Como
action filter_type
action find
entity Lake Como
relation lake outflow
type watercourse
['Lake Como', 'lake outflow', {'concept': 'watercourse'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:watercourse . resource:Lake_Como property:lake_outflow ?e }
[]
watercourse
Q63109
SYSTEM
Adda
Q63109
(Q15523,P201,c(Q355304))
action filter_type
action find
entity Q15523
relation P201
type Q355304
[ANSWER] outflows from Lake Como
['Q15523', 'P201', {'concept': 'Q355304'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q355304 . resource:Q15523 property:P201 ?e }
Adda
Adda outflows from Lake Como
Adda
action filter_type
action find
entity Lake Como
relation lake outflow
type watercourse
['Lake Como', 'lake outflow', {'concept': 'watercourse'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:watercourse . resource:Lake_Como property:lake_outflow ?e }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q63109 Q924858 Q16458219
P469
Q337567
USER
Does that watercourse flows through Lake Ponchozero and Laumiakys ?
(Q63109,P469,Q924858) (Q63109,P469,Q16458219)
action is_in
entity Q63109
action intersection
action find_reverse
entity Q924858
relation P469
action find_reverse
entity Q16458219
relation P469
['Q63109', 'P469', 'Q924858'] ['Q63109', 'P469', 'Q16458219']
ASK WHERE { resource:Q63109 property:P469 resource:Q16458219 . resource:Q63109 property:P469 resource:Q924858 }
Adda Lake Ponchozero Laumiakys
action is_in
entity Adda
action intersection
action find_reverse
entity Lake Ponchozero
relation lakes on river
action find_reverse
entity Laumiakys
relation lakes on river
['Adda', 'lakes on river', 'Lake Ponchozero'] ['Adda', 'lakes on river', 'Laumiakys']
ASK WHERE { resource:Adda property:lakes_on_river resource:Laumiakys . resource:Adda property:lakes_on_river resource:Lake_Ponchozero }
[]
still waters
SYSTEM
NO
(Q63109,P469,Q924858) (Q63109,P469,Q16458219)
action is_in
entity Q63109
action intersection
action find_reverse
entity Q924858
relation P469
action find_reverse
entity Q16458219
relation P469
[ANSWER]
['Q63109', 'P469', 'Q924858'] ['Q63109', 'P469', 'Q16458219']
ASK WHERE { resource:Q63109 property:P469 resource:Q16458219 . resource:Q63109 property:P469 resource:Q924858 }
No
action is_in
entity Adda
action intersection
action find_reverse
entity Lake Ponchozero
relation lakes on river
action find_reverse
entity Laumiakys
relation lakes on river
['Adda', 'lakes on river', 'Lake Ponchozero'] ['Adda', 'lakes on river', 'Laumiakys']
ASK WHERE { resource:Adda property:lakes_on_river resource:Laumiakys . resource:Adda property:lakes_on_river resource:Lake_Ponchozero }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P403
Q15324 Q355304
USER
Which bodies of water do the drainage of around 16 watercourses end ?
(c(Q355304),P403,c(Q15324))
action approx
action find_reverse_tuple_counts
relation P403
type Q15324
type Q355304
value 16
[{'concept': 'Q355304'}, 'P403', {'concept': 'Q15324'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:P403 ?j . ?j rdf:type ontology:Q15324 . ?g rdf:type ontology:Q355304 } GROUP BY ?j } . FILTER ( ?m = 16 ) }
action approx
action find_reverse_tuple_counts
relation mouth of the watercourse
type body of water
type watercourse
value 16
[{'concept': 'watercourse'}, 'mouth of the watercourse', {'concept': 'body of water'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:mouth_of_the_watercourse ?j . ?j rdf:type ontology:body_of_water . ?g rdf:type ontology:watercourse } GROUP BY ?j } . FILTER ( ?m = 16 ) }
[]
body of water watercourse
Q37660 Q35827 Q3040
SYSTEM
South China Sea, Río de la Plata, Hudson Bay
Q41430 Q3040 Q2090594 Q35827 Q673264 Q35000 Q13234218 Q209682 Q697092 Q844003 Q42820 Q49364 Q37660 Q1165951 Q1368308 Q216868 Q1323629 Q14686 Q163434 Q1432730 Q27092 Q41573 Q38684 Q140290 Q81499 Q1512616 Q1129590 Q141017 Q3059074
(c(Q355304),P403,c(Q15324))
action approx
action find_reverse_tuple_counts
relation P403
type Q15324
type Q355304
value 16
[ANSWERS] the drainage of around 16 watercourses end
[{'concept': 'Q355304'}, 'P403', {'concept': 'Q15324'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:P403 ?j . ?j rdf:type ontology:Q15324 . ?g rdf:type ontology:Q355304 } GROUP BY ?j } . FILTER ( ?m = 16 ) }
Gulf of Guinea Hudson Bay Cantabrian Sea Río de la Plata Hawke Bay Sea of Azov Bothnian Bay Gulf of Corinth Hokianga Gulf of Gonâve Ligurian Sea Java Sea South China Sea Ungava Bay Ise Bay Chesapeake Bay Gulf St Vincent Gulf of Finland East Siberian Sea North Taranaki Bight Sea of Japan Bay of Biscay Bay of Bengal Bay of Plenty Celtic Sea Golden Bay Cook Inlet Tokyo Bay estuary of the St. Lawrence
South China Sea, Río de la Plata and Hudson Bay the drainage of around 16 watercourses end
South China Sea Río de la Plata Hudson Bay
action approx
action find_reverse_tuple_counts
relation mouth of the watercourse
type body of water
type watercourse
value 16
[{'concept': 'watercourse'}, 'mouth of the watercourse', {'concept': 'body of water'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:mouth_of_the_watercourse ?j . ?j rdf:type ontology:body_of_water . ?g rdf:type ontology:watercourse } GROUP BY ?j } . FILTER ( ?m = 16 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q37660
P47
Q1048835
USER
Who shares the border with that body of water ?
(Q37660,P47,c(Q1048835))
action filter_type
action find
entity Q37660
relation P47
type Q1048835
['Q37660', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1048835 . resource:Q37660 property:P47 ?i }
South China Sea
action filter_type
action find
entity South China Sea
relation shares border with
type political territorial entity
['South China Sea', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_territorial_entity . resource:South_China_Sea property:shares_border_with ?i }
[]
political territorial entity
Clarification for simple ques.
Q3040
SYSTEM
Did you mean Hudson Bay ?
Q37660 Q35827 Q3040
(Q37660,P47,c(Q1048835)) (Q35827,P47,c(Q1048835)) (Q3040,P47,c(Q1048835))
[ANSWER]
['Q37660', 'P47', {'concept': 'Q1048835'}] ['Q35827', 'P47', {'concept': 'Q1048835'}] ['Q3040', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1048835 . resource:Q37660 property:P47 ?i }
South China Sea Río de la Plata Hudson Bay
Did you mean Hudson Bay ?
Hudson Bay
['South China Sea', 'shares border with', {'concept': 'political territorial entity'}] ['Río de la Plata', 'shares border with', {'concept': 'political territorial entity'}] ['Hudson Bay', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_territorial_entity . resource:South_China_Sea property:shares_border_with ?i }
[]
Simple Question (Coreferenced)
USER
No, I meant South China Sea. Could you tell me the answer for that?
(Q37660,P47,c(Q1048835))
Q37660
['Q37660', 'P47', {'concept': 'Q1048835'}]
['South China Sea', 'shares border with', {'concept': 'political territorial entity'}]
[]
Q3916
SYSTEM
Kalimantan Barat
Q3916
(Q37660,P47,c(Q1048835))
action filter_type
action find
entity Q37660
relation P47
type Q1048835
[ANSWER] shares the border with that body of water
['Q37660', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1048835 . resource:Q37660 property:P47 ?i }
Kalimantan Barat
Kalimantan Barat shares the border with that body of water
Kalimantan Barat
action filter_type
action find
entity South China Sea
relation shares border with
type political territorial entity
['South China Sea', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_territorial_entity . resource:South_China_Sea property:shares_border_with ?i }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q355304 Q2342494 Q3305213
USER
Which watercourses are depicted in min number of collectables or paintings ?
(c(Q2342494)|c(Q3305213),P180,c(Q355304))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q355304
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q355304
type Q3305213
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q355304'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?t ) WHERE { VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?o rdf:type ?a } GROUP BY ?b } } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?s ) WHERE { { ?g rdf:type ontology:Q355304 . ?h rdf:type ontology:Q3305213 . ?h property:P180 ?g } UNION { ?h property:P180 ?g . ?g rdf:type ontology:Q355304 . ?h rdf:type ontology:Q2342494 } } GROUP BY ?g } }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type watercourse
type collectable
action find_reverse_tuple_counts
relation depicts
type watercourse
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'watercourse'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?t ) WHERE { VALUES ( ?a ) { ( ontology:collectable ) ( ontology:painting ) } . ?o rdf:type ?a } GROUP BY ?b } } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?s ) WHERE { { ?g rdf:type ontology:watercourse . ?h rdf:type ontology:painting . ?h property:depicts ?g } UNION { ?h property:depicts ?g . ?g rdf:type ontology:watercourse . ?h rdf:type ontology:collectable } } GROUP BY ?g } }
[]
watercourse collectable painting
Q1644 Q131574 Q1653
SYSTEM
Elbe, Vltava, Danube
Q1888146 Q10965 Q24656043 Q31347 Q200231 Q1653 Q1650 Q626 Q3529419 Q5089 Q13125370 Q548466 Q4689351 Q24638204 Q1585830 Q1245601 Q2454720 Q222149 Q335575 Q19751 Q2188006 Q19686 Q319590 Q1667 Q765106 Q201463 Q13125393 Q23130 Q3399804 Q144825 Q11990461 Q191829 Q1329599 Q751915 Q13125388 Q393137 Q25938187 Q1876030 Q842462 Q1631368 Q3395302 Q790404 Q155397 Q27538 Q534813 Q171009 Q2611124 Q605122 Q1043657 Q207928 Q20594120 Q918867 Q1364549 Q5077 Q450324 Q1941117 Q685344 Q1364559 Q40059 Q1126662 Q1935995 Q38743 Q7337876 Q8493 Q24662750 Q1030911 Q952791 Q24488211 Q25930324 Q686835 Q83471 Q20118 Q7348 Q851348 Q1540243 Q19682 Q182343 Q1401902 Q37538 Q1349493 Q6812447 Q860172 Q7602263 Q25929501 Q7337618 Q584 Q1470035 Q188871 Q26257535 Q2360422 Q25930251 Q838143 Q3783 Q7882224 Q40855 Q3399445 Q655754 Q4667048 Q868968 Q990106 Q208174 Q898425 Q20601505 Q1585864 Q5446244 Q1968596 Q20597232 Q20601350 Q191087 Q38586 Q23766747 Q3398402 Q204347 Q213967 Q14508715 Q216875 Q1194478 Q26300491 Q491677 Q41962 Q193737 Q5058789 Q2620166 Q2373449 Q643 Q1265 Q4689363 Q572158 Q1545456 Q1143852 Q3398779 Q3355703 Q14369 Q26203882 Q2210898 Q1422687 Q3445979 Q20599704 Q379648 Q2121702 Q38754 Q923929 Q2935978 Q269710 Q879306 Q209540 Q37646 Q37847 Q1143108 Q534181 Q20655849 Q2936027 Q971590 Q35591 Q7337078 Q20590910 Q798460 Q4689355 Q4689350 Q1373778 Q13125375 Q969618 Q34589 Q115457 Q4689303 Q7337369 Q185405 Q2527535 Q37529 Q13125377 Q602 Q383379 Q4689339 Q24662715 Q478348 Q679050 Q2936058 Q19700 Q25929266 Q279370 Q17264744 Q41983 Q282530 Q24285831 Q3058095 Q41986 Q514154 Q4689346 Q4689348 Q490295 Q131574 Q1279831 Q134750 Q7337062 Q214874 Q25930176 Q1229 Q3359370 Q25930443 Q123058 Q10958655 Q600675 Q1032662 Q25930115 Q5331562 Q25972997 Q3432819 Q586586 Q3432787 Q1946396 Q3401771 Q7161973 Q1523834 Q175117 Q23798 Q143762 Q3399942 Q1644 Q738230 Q2089585 Q179751 Q7337306 Q25738143 Q20596483 Q16512 Q13712 Q249062 Q187834 Q19695 Q25930821
(c(Q2342494)|c(Q3305213),P180,c(Q355304))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q355304
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q355304
type Q3305213
[ANSWERS] are depicted in min number of collectables or paintings
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q355304'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?t ) WHERE { VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?o rdf:type ?a } GROUP BY ?b } } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?s ) WHERE { { ?g rdf:type ontology:Q355304 . ?h rdf:type ontology:Q3305213 . ?h property:P180 ?g } UNION { ?h property:P180 ?g . ?g rdf:type ontology:Q355304 . ?h rdf:type ontology:Q2342494 } } GROUP BY ?g } }
Kaministiquia River Ebro Rhaeadr Du Grand Canal Oise Danube Weser Volga small river Ganges River Edw Aube Afon Rhythallt River Rhiw River Mawddach Loiret River Towy Sumida River Sacramento River Qiantang River Gein River Thames Beas River Moselle Barada Pearl River River Prysor Gállego River Rheidol Kiel Canal Mølleåen Magdalena River Kokemäenjoki River Dovey River Loughor Dan River Machno Falls River Lugg Vilaine Housatonic River River Clwyd Aven River Monnow Susquehanna River Essonne Drava River Dwyryd Schuylkill River River Dee Gauja Ogwen Falls Kanawha River Isole Garonne Little Miami River River Stour Khabur River River Tawe Jordan River Kern River Ausable River Kaaterskill Falls River Thaw Amu Darya Afon Trystion Yellowstone Falls Petit Morin Ceunant Mawr Rhaeadr y Cwm Staubbach Falls geyser Turia Indus River River Cleddau River Stour Severn Niagara River Minnehaha Falls High Falls Erdre Melincourt Falls Canal Saint-Martin Starrucca Creek Rhaeadr Cynfal River Machno Rhine Merced River Orontes River Nant Gau Bridalveil Fall Rhaeadr Mawddach Gila River Amazonas Unadilla River Dnieper River River Llugwy Platte River Aberdulais Falls River Conwy Epte Dordogne Brandywine Creek Nant y Gwryd River Honddu Ffrwd Fawr Waterfall Rainbow Falls Sgwd yr Eira River Twrch Acheron Nevada Fall Pistyll Cain River Ely Maritsa Yonne Sgwd Gwladys Chenab River River Gwendraeth Caradog Falls Yosemite Falls Aisne Tennessee River Cenarth Falls Vernal Fall River Tâf Po Colorado River Afon Tarell Pistyll Rhaeadr Yerres Lek Aber Falls River Elwy Inn Rhaeadr Peiran Saco River Genesee River Silver Burn River Cynfal Connecticut River River Ystwyth Dolgoch Falls Pactolus irrigation canal Fraser River Bièvre Scioto River River Somme Mynach Falls Ternin Saint Croix River River Solva canale di Santa Chiara Tamar River Tigris River Alun, Pembrokeshire River Ceirw Zarqa River River Seiont Afon Pyrddin Horseshoe Falls Afon Gain Touques Euphrates Arno Afon Aber River Dulais Amstel Viosne Swallow Falls River Gwyrfai Rhône Afon Glaslyn Afon Lwyd Afon Teigl Amsterdam–Rhine Canal Armançon canale della Giudecca River Taff Cavern Cascade Loue Afon Eden Marne Merwede Carew River Esopus Creek Meuse Androscoggin River Afon Mynach Afon Ogwen Tequendama Falls Vltava Jerma Saint Lawrence River River Afan Jhelum River Afon Gamlan Don River Mellte Devil's Kitchen Kakabeka Falls Afon Wnion Cure Canal du Loing Rhaeadr Du Ebbw River River Hwch rio dei Mendicanti Suså River rio del Palazzo Montmorency Falls Afon Hepste Pembroke River River Teifi Moskva River Eure Delaware River Ewenny River Elbe Spaarne River Neath Aras River River Cothi Scwd Einion Gam Afon y Garth Manzanares Tiber Loing Saône River Wye Afon Babi
Elbe, Vltava and Danube are depicted in min number of collectables or paintings
Elbe Vltava Danube
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type watercourse
type collectable
action find_reverse_tuple_counts
relation depicts
type watercourse
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'watercourse'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?t ) WHERE { VALUES ( ?a ) { ( ontology:collectable ) ( ontology:painting ) } . ?o rdf:type ?a } GROUP BY ?b } } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?s ) WHERE { { ?g rdf:type ontology:watercourse . ?h rdf:type ontology:painting . ?h property:depicts ?g } UNION { ?h property:depicts ?g . ?g rdf:type ontology:watercourse . ?h rdf:type ontology:collectable } } GROUP BY ?g } }
[]