Simple Question (Direct)
Simple Question
Q5318111
P21
Q290
USER
Which sex does Dwight Baldwin possess ?
(Q5318111,P21,c(Q290))
action filter_type
action find
entity Q5318111
relation P21
type Q290
['Q5318111', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q5318111 property:P21 ?z . ?z rdf:type ontology:Q290 }
Dwight Baldwin
action filter_type
action find
entity Dwight Baldwin
relation gender
type sex
['Dwight Baldwin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Dwight_Baldwin property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5318111,P21,c(Q290))
action filter_type
action find
entity Q5318111
relation P21
type Q290
Dwight Baldwin possesses un [ANSWER]
['Q5318111', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q5318111 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
Dwight Baldwin possesses un male
male
action filter_type
action find
entity Dwight Baldwin
relation gender
type sex
['Dwight Baldwin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Dwight_Baldwin property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5318111
P22
Q502895
USER
Who have Dwight Baldwin as a father ?
(c(Q502895),P22,Q5318111)
action filter_type
action find_reverse
entity Q5318111
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q5318111']
SELECT DISTINCT ?b WHERE { ?b property:P22 resource:Q5318111 . ?b rdf:type ontology:Q502895 }
Dwight Baldwin
action filter_type
action find_reverse
entity Dwight Baldwin
relation father
type common name
[{'concept': 'common name'}, 'father', 'Dwight Baldwin']
SELECT DISTINCT ?b WHERE { ?b property:father resource:Dwight_Baldwin . ?b rdf:type ontology:common_name }
[]
common name
Q5726898 Q5233136
SYSTEM
Henry Perrine Baldwin, David Dwight Baldwin
Q5726898 Q5233136
(c(Q502895),P22,Q5318111)
action filter_type
action find_reverse
entity Q5318111
relation P22
type Q502895
[ANSWERS] have Dwight Baldwin as a father
[{'concept': 'Q502895'}, 'P22', 'Q5318111']
SELECT DISTINCT ?b WHERE { ?b property:P22 resource:Q5318111 . ?b rdf:type ontology:Q502895 }
Henry Perrine Baldwin David Dwight Baldwin
Henry Perrine Baldwin and David Dwight Baldwin have Dwight Baldwin as a father
Henry Perrine Baldwin David Dwight Baldwin
action filter_type
action find_reverse
entity Dwight Baldwin
relation father
type common name
[{'concept': 'common name'}, 'father', 'Dwight Baldwin']
SELECT DISTINCT ?b WHERE { ?b property:father resource:Dwight_Baldwin . ?b rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5233136
P7
Q502895
USER
Which person is the brother of that one ?
(Q5233136,P7,c(Q502895))
action filter_type
action find
entity Q5233136
relation P7
type Q502895
['Q5233136', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q5233136 property:P7 ?m . ?m rdf:type ontology:Q502895 }
David Dwight Baldwin
action filter_type
action find
entity David Dwight Baldwin
relation brother
type common name
['David Dwight Baldwin', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:David_Dwight_Baldwin property:brother ?m . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q5726898
SYSTEM
Did you mean Henry Perrine Baldwin ?
Q5726898 Q5233136
(Q5726898,P7,c(Q502895)) (Q5233136,P7,c(Q502895))
[ANSWER]
['Q5726898', 'P7', {'concept': 'Q502895'}] ['Q5233136', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q5233136 property:P7 ?m . ?m rdf:type ontology:Q502895 }
Henry Perrine Baldwin David Dwight Baldwin
Did you mean Henry Perrine Baldwin ?
Henry Perrine Baldwin
['Henry Perrine Baldwin', 'brother', {'concept': 'common name'}] ['David Dwight Baldwin', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:David_Dwight_Baldwin property:brother ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant David Dwight Baldwin. Could you tell me the answer for that?
(Q5233136,P7,c(Q502895))
Q5233136
['Q5233136', 'P7', {'concept': 'Q502895'}]
['David Dwight Baldwin', 'brother', {'concept': 'common name'}]
[]
Q5726898
SYSTEM
Henry Perrine Baldwin
Q5726898
(Q5233136,P7,c(Q502895))
action filter_type
action find
entity Q5233136
relation P7
type Q502895
The [ANSWER] is the brother of that one
['Q5233136', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q5233136 property:P7 ?m . ?m rdf:type ontology:Q502895 }
Henry Perrine Baldwin
The Henry Perrine Baldwin is the brother of that one
Henry Perrine Baldwin
action filter_type
action find
entity David Dwight Baldwin
relation brother
type common name
['David Dwight Baldwin', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:David_Dwight_Baldwin property:brother ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5726898
P40
Q502895
USER
Who is a child of that one ?
(Q5726898,P40,c(Q502895))
action filter_type
action find
entity Q5726898
relation P40
type Q502895
['Q5726898', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q5726898 property:P40 ?g . ?g rdf:type ontology:Q502895 }
Henry Perrine Baldwin
action filter_type
action find
entity Henry Perrine Baldwin
relation child
type common name
['Henry Perrine Baldwin', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Henry_Perrine_Baldwin property:child ?g . ?g rdf:type ontology:common_name }
[]
common name
Q1606418
SYSTEM
Henry Alexander Baldwin
Q1606418
(Q5726898,P40,c(Q502895))
action filter_type
action find
entity Q5726898
relation P40
type Q502895
A child of that one is to [ANSWER]
['Q5726898', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q5726898 property:P40 ?g . ?g rdf:type ontology:Q502895 }
Henry Alexander Baldwin
A child of that one is to Henry Alexander Baldwin
Henry Alexander Baldwin
action filter_type
action find
entity Henry Perrine Baldwin
relation child
type common name
['Henry Perrine Baldwin', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Henry_Perrine_Baldwin property:child ?g . ?g rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1606418 Q1127911
P40
Q502895
USER
Does Constantin Movilă have that one as a child ?
(Q1127911,P40,Q1606418)
action is_in
entity Q1127911
action find
entity Q1606418
relation P40
['Q1127911', 'P40', 'Q1606418']
ASK WHERE { resource:Q1606418 property:P40 resource:Q1127911 }
Henry Alexander Baldwin Constantin Movilă
action is_in
entity Constantin Movilă
action find
entity Henry Alexander Baldwin
relation child
['Constantin Movilă', 'child', 'Henry Alexander Baldwin']
ASK WHERE { resource:Henry_Alexander_Baldwin property:child resource:Constantin_Movilă }
[]
common name
SYSTEM
NO
(Q1127911,P40,Q1606418)
action is_in
entity Q1127911
action find
entity Q1606418
relation P40
[ANSWER]
['Q1127911', 'P40', 'Q1606418']
ASK WHERE { resource:Q1606418 property:P40 resource:Q1127911 }
No
action is_in
entity Constantin Movilă
action find
entity Henry Alexander Baldwin
relation child
['Constantin Movilă', 'child', 'Henry Alexander Baldwin']
ASK WHERE { resource:Henry_Alexander_Baldwin property:child resource:Constantin_Movilă }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1606418
P20
Q271669
USER
Where did Henry Alexander Baldwin expire ?
action filter_type
action find
entity Q1606418
relation P20
type Q271669
SELECT DISTINCT ?x WHERE { resource:Q1606418 property:P20 ?x . ?x rdf:type ontology:Q271669 }
Henry Alexander Baldwin
action filter_type
action find
entity Henry Alexander Baldwin
relation place of death
type landform
SELECT DISTINCT ?x WHERE { resource:Henry_Alexander_Baldwin property:place_of_death ?x . ?x rdf:type ontology:landform }
[]
landform
Q188705
SYSTEM
Maui
Q188705
action filter_type
action find
entity Q1606418
relation P20
type Q271669
Henry Alexander Baldwin expired in [ANSWER]
SELECT DISTINCT ?x WHERE { resource:Q1606418 property:P20 ?x . ?x rdf:type ontology:Q271669 }
Maui
Henry Alexander Baldwin expired in Maui
Maui
action filter_type
action find
entity Henry Alexander Baldwin
relation place of death
type landform
SELECT DISTINCT ?x WHERE { resource:Henry_Alexander_Baldwin property:place_of_death ?x . ?x rdf:type ontology:landform }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P706
Q107425 Q271669
USER
Which landscapes are the location where min number of landforms are located ?
(c(Q271669),P706,Q304679)
action argmin
action find_reverse_tuple_counts
relation P706
type Q107425
type Q271669
[{'concept': 'Q271669'}, 'P706', 'Q304679']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?j ) WHERE { ?c rdf:type ontology:Q107425 . ?b rdf:type ontology:Q271669 . ?b property:P706 ?c } GROUP BY ?c } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?a ) WHERE { ?s property:P706 ?y . ?y rdf:type ontology:Q107425 . ?s rdf:type ontology:Q271669 } GROUP BY ?y } . FILTER ( ?a = ?m ) }
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type landform
[{'concept': 'landform'}, 'located on terrain feature', 'Palmer Archipelago']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?j ) WHERE { ?c rdf:type ontology:landscape . ?b rdf:type ontology:landform . ?b property:located_on_terrain_feature ?c } GROUP BY ?c } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?a ) WHERE { ?s property:located_on_terrain_feature ?y . ?y rdf:type ontology:landscape . ?s rdf:type ontology:landform } GROUP BY ?y } . FILTER ( ?a = ?m ) }
[]
landscape landform
Q671343 Q7296 Q303431
SYSTEM
Mont Blanc massif, Mount Kilimanjaro, Ufenau
Q537749 Q5238909 Q3593572 Q184355 Q218907 Q205711 Q171132 Q6549341 Q122641 Q7361436 Q26399 Q1371403 Q83788 Q3437341 Q181528 Q3182351 Q15622837 Q8534941 Q5053601 Q3298193 Q47141 Q189429 Q1670250 Q7296 Q3803 Q152704 Q2618638 Q1124865 Q170383 Q303431 Q271674 Q671343 Q925906 Q152928 Q6583 Q17140346 Q162843 Q93259 Q116693 Q1384782 Q1283 Q202207 Q855658 Q11767 Q775944 Q119206 Q202816 Q924257 Q10688475 Q5312305 Q38272 Q7592509 Q172691 Q6379939 Q5467845 Q5951207 Q829084 Q291004 Q212520 Q19730761 Q2135927 Q2280216 Q128172 Q586512 Q75596 Q180209 Q81052 Q2364593 Q292647 Q23011164 Q653732 Q172702 Q753719 Q272521 Q1348763 Q913470 Q1252239 Q25046183
(c(Q271669),P706,Q304679)
action argmin
action find_reverse_tuple_counts
relation P706
type Q107425
type Q271669
[ANSWERS] are the location where min number of landforms are located
[{'concept': 'Q271669'}, 'P706', 'Q304679']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?j ) WHERE { ?c rdf:type ontology:Q107425 . ?b rdf:type ontology:Q271669 . ?b property:P706 ?c } GROUP BY ?c } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?a ) WHERE { ?s property:P706 ?y . ?y rdf:type ontology:Q107425 . ?s rdf:type ontology:Q271669 } GROUP BY ?y } . FILTER ( ?a = ?m ) }
Florida Keys Svenska Högarna Apostle Islands Mojave Desert Sharon Plain Solovetsky Islands Cyclades Limestone Massif Lechquellen Mountains Rolwaling Himal Hoggar Mountains Similan Islands Cordillera Central Roc de Chère National Nature Reserve Libyan Desert Plain of the Cul-de-Sac Guaniguanico Cerro de la Neblina Cato Reef Borg Massif Atacama Desert Sonoran Desert Jenolan Caves Mount Kilimanjaro Lesser Sunda Islands Gailtal Alps Upland Minsk Kantō Plain Aïr Mountains Ufenau Phoenix Islands Mont Blanc massif Colorado Plateau Carnic Prealps Sahara Ko Yao archipelago Negev Lesser Antilles Esjan Tanezrouft Dolomites Po Valley Chihuahuan Desert Mesopotamia Bărăgan Plain Julian Alps Stora Alvaret Mahalangur Himal Söderarm archipelago Dufek Massif British Isles St Anthony Head Thar Desert Kawdy Plateau Ford Massif Huvudskär Vegaøyan Highlands of Iceland Lower Rhine Plain Phraya Nakhon Cave Red Centre Gran Paradiso massif Île d'Orléans Morvan Laurentian Mountains Isles of Scilly Inner Hebrides Sulitelma Petite Terre Islands Canso Islands Lubusz Land Karakum Desert Fjäderholmarna Ténéré Magdalen Islands Loyalty Islands Hochelaga Archipelago Surin Islands
Mont Blanc massif, Mount Kilimanjaro and Ufenau are the location where min number of landforms are located
Mont Blanc massif Mount Kilimanjaro Ufenau
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type landform
[{'concept': 'landform'}, 'located on terrain feature', 'Palmer Archipelago']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?j ) WHERE { ?c rdf:type ontology:landscape . ?b rdf:type ontology:landform . ?b property:located_on_terrain_feature ?c } GROUP BY ?c } } . { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?a ) WHERE { ?s property:located_on_terrain_feature ?y . ?y rdf:type ontology:landscape . ?s rdf:type ontology:landform } GROUP BY ?y } . FILTER ( ?a = ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7296
P610
Q8072
USER
What is the highest point of Mount Kilimanjaro ?
(Q7296,P610,c(Q8072))
action filter_type
action find
entity Q7296
relation P610
type Q8072
['Q7296', 'P610', {'concept': 'Q8072'}]
SELECT DISTINCT ?g WHERE { resource:Q7296 property:P610 ?g . ?g rdf:type ontology:Q8072 }
Mount Kilimanjaro
action filter_type
action find
entity Mount Kilimanjaro
relation highest point
type volcano
['Mount Kilimanjaro', 'highest point', {'concept': 'volcano'}]
SELECT DISTINCT ?g WHERE { resource:Mount_Kilimanjaro property:highest_point ?g . ?g rdf:type ontology:volcano }
[]
volcano
Q1394606
SYSTEM
Kibo
Q1394606
(Q7296,P610,c(Q8072))
action filter_type
action find
entity Q7296
relation P610
type Q8072
The highest point of Mount Kilimanjaro is Mount [ANSWER]
['Q7296', 'P610', {'concept': 'Q8072'}]
SELECT DISTINCT ?g WHERE { resource:Q7296 property:P610 ?g . ?g rdf:type ontology:Q8072 }
Kibo
The highest point of Mount Kilimanjaro is Mount Kibo
Kibo
action filter_type
action find
entity Mount Kilimanjaro
relation highest point
type volcano
['Mount Kilimanjaro', 'highest point', {'concept': 'volcano'}]
SELECT DISTINCT ?g WHERE { resource:Mount_Kilimanjaro property:highest_point ?g . ?g rdf:type ontology:volcano }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q233124
Q8072
USER
And how about São Tomé Island?
(Q233124,P610,c(Q8072))
action filter_type
action find
entity Q233124
relation P610
type Q8072
['Q233124', 'P610', {'concept': 'Q8072'}]
SELECT DISTINCT ?t WHERE { resource:Q233124 property:P610 ?t . ?t rdf:type ontology:Q8072 }
São Tomé Island
action filter_type
action find
entity São Tomé Island
relation highest point
type volcano
['São Tomé Island', 'highest point', {'concept': 'volcano'}]
SELECT DISTINCT ?t WHERE { resource:São_Tomé_Island property:highest_point ?t . ?t rdf:type ontology:volcano }
[]
volcano
Q1471391
SYSTEM
Pico de São Tomé
Q1471391
(Q233124,P610,c(Q8072))
action filter_type
action find
entity Q233124
relation P610
type Q8072
[ANSWER]
['Q233124', 'P610', {'concept': 'Q8072'}]
SELECT DISTINCT ?t WHERE { resource:Q233124 property:P610 ?t . ?t rdf:type ontology:Q8072 }
Pico de São Tomé
Pico de São Tomé
action filter_type
action find
entity São Tomé Island
relation highest point
type volcano
['São Tomé Island', 'highest point', {'concept': 'volcano'}]
SELECT DISTINCT ?t WHERE { resource:São_Tomé_Island property:highest_point ?t . ?t rdf:type ontology:volcano }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1134814
P186
Q8063 Q8072
USER
Which rocks are used to construct more number of volcanoes than dolostone ?
(c(Q8072),P186,c(Q8063))
action greater
action find_reverse_tuple_counts
relation P186
type Q8063
type Q8072
action count
action filter_type
action find
entity Q1134814
relation P186
type Q8063
[{'concept': 'Q8072'}, 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?i ) WHERE { ?u rdf:type ontology:Q8063 . ?c rdf:type ontology:Q8072 . ?c property:P186 ?u } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:Q1134814 property:P186 ?s . ?s rdf:type ontology:Q8063 } } . FILTER ( ?i > ?t ) }
dolostone
action greater
action find_reverse_tuple_counts
relation material used
type rock
type volcano
action count
action filter_type
action find
entity dolostone
relation material used
type rock
[{'concept': 'volcano'}, 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?i ) WHERE { ?u rdf:type ontology:rock . ?c rdf:type ontology:volcano . ?c property:material_used ?u } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:dolostone property:material_used ?s . ?s rdf:type ontology:rock } } . FILTER ( ?i > ?t ) }
[]
rock volcano
Q43338 Q181908 Q777112
SYSTEM
basalt, andesite, tephrite
Q43338 Q181908 Q777112 Q466481 Q332748
(c(Q8072),P186,c(Q8063))
action greater
action find_reverse_tuple_counts
relation P186
type Q8063
type Q8072
action count
action filter_type
action find
entity Q1134814
relation P186
type Q8063
[ANSWERS] are used to construct more number of volcanoes than dolostone
[{'concept': 'Q8072'}, 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?i ) WHERE { ?u rdf:type ontology:Q8063 . ?c rdf:type ontology:Q8072 . ?c property:P186 ?u } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:Q1134814 property:P186 ?s . ?s rdf:type ontology:Q8063 } } . FILTER ( ?i > ?t ) }
basalt andesite tephrite dacite trachyte
Basalt, andesite and tephrite are used to construct more number of volcanoes than dolostone
basalt andesite tephrite
action greater
action find_reverse_tuple_counts
relation material used
type rock
type volcano
action count
action filter_type
action find
entity dolostone
relation material used
type rock
[{'concept': 'volcano'}, 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?i ) WHERE { ?u rdf:type ontology:rock . ?c rdf:type ontology:volcano . ?c property:material_used ?u } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:dolostone property:material_used ?s . ?s rdf:type ontology:rock } } . FILTER ( ?i > ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q11722512
P186
Q8063 Q8072
USER
And how about anhydrite stone?
(c(Q8072),P186,c(Q8063))
action greater
action find_reverse_tuple_counts
relation P186
type Q8063
type Q8072
action count
action filter_type
action find
entity Q11722512
relation P186
type Q8063
[{'concept': 'Q8072'}, 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:P186 ?p . ?p rdf:type ontology:Q8063 . ?i rdf:type ontology:Q8072 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ontology:Q8063 . resource:Q11722512 property:P186 ?w } } . FILTER ( ?t > ?v ) }
anhydrite stone
action greater
action find_reverse_tuple_counts
relation material used
type rock
type volcano
action count
action filter_type
action find
entity anhydrite stone
relation material used
type rock
[{'concept': 'volcano'}, 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:material_used ?p . ?p rdf:type ontology:rock . ?i rdf:type ontology:volcano } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ontology:rock . resource:anhydrite_stone property:material_used ?w } } . FILTER ( ?t > ?v ) }
[]
rock volcano
Q43338 Q181908 Q777112
SYSTEM
basalt, andesite, tephrite
Q43338 Q181908 Q777112 Q466481 Q332748
(c(Q8072),P186,c(Q8063))
action greater
action find_reverse_tuple_counts
relation P186
type Q8063
type Q8072
action count
action filter_type
action find
entity Q11722512
relation P186
type Q8063
[ANSWERS]
[{'concept': 'Q8072'}, 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:P186 ?p . ?p rdf:type ontology:Q8063 . ?i rdf:type ontology:Q8072 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ontology:Q8063 . resource:Q11722512 property:P186 ?w } } . FILTER ( ?t > ?v ) }
basalt andesite tephrite dacite trachyte
basalt andesite tephrite
action greater
action find_reverse_tuple_counts
relation material used
type rock
type volcano
action count
action filter_type
action find
entity anhydrite stone
relation material used
type rock
[{'concept': 'volcano'}, 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?t ) WHERE { ?i property:material_used ?p . ?p rdf:type ontology:rock . ?i rdf:type ontology:volcano } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ontology:rock . resource:anhydrite_stone property:material_used ?w } } . FILTER ( ?t > ?v ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P186
Q8063 Q16970
USER
Which churches are built using atmost 2 rocks ?
(c(Q16970),P186,c(Q8063))
action atmost
action find_tuple_counts
relation P186
type Q16970
type Q8063
value 2
[{'concept': 'Q16970'}, 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?f ) WHERE { ?h property:P186 ?z . ?h rdf:type ontology:Q16970 . ?z rdf:type ontology:Q8063 } GROUP BY ?h } . FILTER ( ?f <= 2 ) }
action atmost
action find_tuple_counts
relation material used
type church
type rock
value 2
[{'concept': 'church'}, 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?f ) WHERE { ?h property:material_used ?z . ?h rdf:type ontology:church . ?z rdf:type ontology:rock } GROUP BY ?h } . FILTER ( ?f <= 2 ) }
[]
rock church
Q1236689 Q1477827 Q15042147
SYSTEM
Lund Cathedral, Saint James's Church, St. Eric's Cathedral, Stockholm
Q1351690 Q15729846 Q897812 Q15042147 Q650037 Q7592338 Q15715317 Q1631067 Q1133075 Q16064289 Q201720 Q478321 Q18695631 Q17326289 Q1982229 Q657118 Q2942323 Q15848431 Q3916007 Q1355440 Q1423470 Q166667 Q435829 Q1892155 Q1187606 Q4477984 Q850042 Q4256302 Q4505088 Q831552 Q428129 Q435812 Q15848503 Q3790872 Q1742825 Q491260 Q854267 Q209705 Q1686988 Q18413167 Q2942911 Q127722 Q16736744 Q2294625 Q15726637 Q173882 Q1992190 Q15848482 Q15637520 Q27964 Q2942901 Q953682 Q94744 Q254404 Q4348256 Q2076276 Q18028044 Q1238512 Q215023 Q890127 Q937290 Q15648535 Q2453455 Q15526006 Q471717 Q526650 Q225459 Q737220 Q1236720 Q732112 Q1566208 Q15635790 Q1236597 Q116603 Q18130877 Q18028066 Q167193 Q603289 Q1355001 Q1236697 Q15815698 Q2317878 Q1349741 Q694424 Q1477827 Q18286751 Q880381 Q2317971 Q1133059 Q4348177 Q7397106 Q794242 Q13377583 Q1236689 Q523691 Q337871 Q1236708 Q17606582 Q381449 Q18020912 Q129846 Q17592482 Q10543605 Q18155878 Q474599 Q1387223 Q1453342 Q2315840 Q154215 Q15379732
(c(Q16970),P186,c(Q8063))
action atmost
action find_tuple_counts
relation P186
type Q16970
type Q8063
value 2
[ANSWERS]
[{'concept': 'Q16970'}, 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?f ) WHERE { ?h property:P186 ?z . ?h rdf:type ontology:Q16970 . ?z rdf:type ontology:Q8063 } GROUP BY ?h } . FILTER ( ?f <= 2 ) }
Toul Cathedral St. Maria (Unterbruch) Votive Church of Szeged St. Eric's Cathedral, Stockholm Cathedral of Évora St Andrew's Church, Cranford Saint Severin Church (Karken) Cathedral of Our Lady of the Angels Storkyrkan Evangelical Church Cathedral of Brasília Archcathedral Basilica of the Assumption of the Blessed Virgin Mary and Saint Andrew in Frombork Liebfrauenkirche (Bottrop) St. Georg (Rottenburg an der Laaber) Nevigeser Wallfahrtsdom Riddarholm Church Saint-Dié Cathedral St. Antonius Lübeck Cathedral Cathedral of St Joseph Molde Cathedral Tartu Cathedral Petäjävesi Old Church St Paul's Cathedral Turku Cathedral Dormition Church, Kondopoga Uppsala Cathedral St. George's Cathedral Kryvka Church Wooden Church Saigon Notre-Dame Basilica Södra Råda Old Church St. Johann Baptist Cathedral of Saint Nicholas Church of Saints Simon and Helena Aarhus Cathedral Wooden churches of Southern Lesser Poland Roskilde Cathedral Kaunas Cathedral Basilica St. Martin Rēzekne Sacred Heart of Jesus Roman Catholic Cathedral Cathedral of Our Lady of the Immaculate Conception St. Jakobus Greensted Church Our Lady of the Rosary Church (Straeten) St Paul's Cathedral St. George's Church St. Gereon St. Josef (Horst) Churches of Chiloé Christ the King Cathedral, Nha Trang Maribo Cathedral Albi Cathedral Middlesbrough Cathedral Umeå City Church Pokajnica Monastery St. Gereon St. Ansgar's Cathedral Nidaros Cathedral Bodø Cathedral St. Anne's Church, Vilnius St. Mariä Rosenkranz Church of St. Francis and St. Bernard St. Johann Baptist Wooden churches of the Slovak Carpathians Clifton Cathedral Königsberg Cathedral Karlstad Cathedral Växjö Cathedral St Magnus Cathedral St John's Cathedral St. Lambertus (Dremmen) Mikkeli Cathedral Habo Church Pfarrkirche St. Martin (Aldenhoven) St. Martin Frauenkirche Alexander Nevsky Cathedral, Novosibirsk Uspenski Cathedral Strängnäs Cathedral Hl. Kreuz St. Cosmas and Damian Arundel Cathedral Schwerin Cathedral Saint James's Church St. Ursula Sacred Heart Church St Denys' Church, Sleaford Riga Cathedral Engelbrecht Church Sacred Heart Cathedral Landakotskirkja Marienkirche Lund Cathedral Schleswig Cathedral Cathedral Basilica of St. James the Apostle Västerås Cathedral Saint Pancratius Church (Bettenhoven) Church of St. Vincent (Wrocław) Hl. Dreifaltigkeit St. Basil's Cathedral St. Gereon Karesuando Church Saint John the Baptist Church (Siersdorf) Juditten Church Liepāja Saint Joseph Roman Catholic Cathedral Fredrikstad Cathedral St.-Albertus-Magnus-Kirche Saint Peter in Chains Cathedral St. Johann Evangelist
Lund Cathedral, Saint James's Church and St. Eric's Cathedral, Stockholm are built using atmost 2 rocks
Lund Cathedral Saint James's Church St. Eric's Cathedral, Stockholm
action atmost
action find_tuple_counts
relation material used
type church
type rock
value 2
[{'concept': 'church'}, 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?f ) WHERE { ?h property:material_used ?z . ?h rdf:type ontology:church . ?z rdf:type ontology:rock } GROUP BY ?h } . FILTER ( ?f <= 2 ) }
[]