Simple Question (Direct)
Simple Question
Q11687818
P21
Q290
USER
Which sex does Bettina Müller-Weissina possess ?
(Q11687818,P21,c(Q290))
action filter_type
action find
entity Q11687818
relation P21
type Q290
['Q11687818', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q11687818 property:P21 ?t . ?t rdf:type ontology:Q290 }
Bettina Müller-Weissina
action filter_type
action find
entity Bettina Müller-Weissina
relation gender
type sex
['Bettina Müller-Weissina', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Bettina_Müller-Weissina property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q11687818,P21,c(Q290))
action filter_type
action find
entity Q11687818
relation P21
type Q290
Bettina Müller-Weissina possesses a [ANSWER]
['Q11687818', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q11687818 property:P21 ?t . ?t rdf:type ontology:Q290 }
female
Bettina Müller-Weissina possesses a female
female
action filter_type
action find
entity Bettina Müller-Weissina
relation gender
type sex
['Bettina Müller-Weissina', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Bettina_Müller-Weissina property:gender ?t . ?t rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11687818
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q6581072,P19,c(Q56061))
action filter_type
action find
entity Q11687818
relation P19
type Q56061
['Q6581072', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q11687818 property:P19 ?v }
Bettina Müller-Weissina
action filter_type
action find
entity Bettina Müller-Weissina
relation place of birth
type administrative territorial entity
['female', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Bettina_Müller-Weissina property:place_of_birth ?v }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q6581072,P19,c(Q56061))
action filter_type
action find
entity Q11687818
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q6581072', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q11687818 property:P19 ?v }
Berlin
Berlin is the place of birth of that person
Berlin
action filter_type
action find
entity Bettina Müller-Weissina
relation place of birth
type administrative territorial entity
['female', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Bettina_Müller-Weissina property:place_of_birth ?v }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types are the registry port of exactly 1 administrative territory ?
(c(Q2235308),P532,c(Q56061))
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 1
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?u ) WHERE { ?t property:P532 ?o . ?t rdf:type ontology:Q2235308 . ?o rdf:type ontology:Q56061 } GROUP BY ?t } . FILTER ( ?u = 1 ) }
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?u ) WHERE { ?t property:port_of_registry ?o . ?t rdf:type ontology:ship_type . ?o rdf:type ontology:administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?u = 1 ) }
[]
administrative territorial entity ship type
Q35462 Q192381 Q983141
SYSTEM
RMS Aquitania, MS Oasis of the Seas, MY Sam Simon
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q1026780 Q22342351 Q15662618 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 1
[ANSWERS] are the registry port of exactly 1 administrative territory
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?u ) WHERE { ?t property:P532 ?o . ?t rdf:type ontology:Q2235308 . ?o rdf:type ontology:Q56061 } GROUP BY ?t } . FILTER ( ?u = 1 ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation SS California Modern Express Djurgården 8 Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
RMS Aquitania, MS Oasis of the Seas and MY Sam Simon are the registry port of exactly 1 administrative territory
RMS Aquitania MS Oasis of the Seas MY Sam Simon
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?u ) WHERE { ?t property:port_of_registry ?o . ?t rdf:type ontology:ship_type . ?o rdf:type ontology:administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?u = 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that ship type belong to ?
(Q35462,P17,c(Q15617994))
['Q35462', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q35462 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['RMS Aquitania', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:RMS_Aquitania property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q192381
SYSTEM
Did you mean MS Oasis of the Seas ?
(Q35462,P17,c(Q15617994)) (Q192381,P17,c(Q15617994)) (Q983141,P17,c(Q15617994))
[ANSWER]
['Q35462', 'P17', {'concept': 'Q15617994'}] ['Q192381', 'P17', {'concept': 'Q15617994'}] ['Q983141', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q35462 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean MS Oasis of the Seas ?
MS Oasis of the Seas
['RMS Aquitania', 'country', {'concept': 'designation for an administrative territorial entity'}] ['MS Oasis of the Seas', 'country', {'concept': 'designation for an administrative territorial entity'}] ['MY Sam Simon', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:RMS_Aquitania property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant RMS Aquitania. Could you tell me the answer for that?
(Q35462,P17,c(Q15617994))
Q35462
['Q35462', 'P17', {'concept': 'Q15617994'}]
['RMS Aquitania', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q145
(Q35462,P17,c(Q15617994))
[ANSWER]
['Q35462', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q35462 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
United Kingdom
1
['RMS Aquitania', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:RMS_Aquitania property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q64 Q21
P495
Q2088357
USER
How many musical ensembles originate at Berlin or England ?
(c(Q2088357),P495,Q64) (c(Q2088357),P495,Q21)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P495
type Q2088357
action filter_type
action find_reverse
entity Q21
relation P495
type Q2088357
[{'concept': 'Q2088357'}, 'P495', 'Q64'] [{'concept': 'Q2088357'}, 'P495', 'Q21']
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { VALUES ( ?r ) { ( resource:Q64 ) ( resource:Q21 ) } . ?u property:P495 ?r }
Berlin England
action count
action union
action filter_type
action find_reverse
entity Berlin
relation country of origin
type musical ensemble
action filter_type
action find_reverse
entity England
relation country of origin
type musical ensemble
[{'concept': 'musical ensemble'}, 'country of origin', 'Berlin'] [{'concept': 'musical ensemble'}, 'country of origin', 'England']
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { VALUES ( ?r ) { ( resource:Berlin ) ( resource:England ) } . ?u property:country_of_origin ?r }
[]
musical ensemble
SYSTEM
8
Q27792569 Q18196370 Q5464417 Q924993 Q20767251 Q16664688 Q2362276 Q19668512
(c(Q2088357),P495,Q64) (c(Q2088357),P495,Q21)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P495
type Q2088357
action filter_type
action find_reverse
entity Q21
relation P495
type Q2088357
[ANSWER]
[{'concept': 'Q2088357'}, 'P495', 'Q64'] [{'concept': 'Q2088357'}, 'P495', 'Q21']
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { VALUES ( ?r ) { ( resource:Q64 ) ( resource:Q21 ) } . ?u property:P495 ?r }
The Hunna Gandalf's Fist Folk Face The Orb Ugly as Sin Miraculous Mule Eat Static New Street Adventure
8
action count
action union
action filter_type
action find_reverse
entity Berlin
relation country of origin
type musical ensemble
action filter_type
action find_reverse
entity England
relation country of origin
type musical ensemble
[{'concept': 'musical ensemble'}, 'country of origin', 'Berlin'] [{'concept': 'musical ensemble'}, 'country of origin', 'England']
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { VALUES ( ?r ) { ( resource:Berlin ) ( resource:England ) } . ?u property:country_of_origin ?r }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q2235308 Q874405 Q271669
USER
Which ship types are atleast 1 social groups and landforms named after ?
(c(Q874405)|c(Q271669),P138,c(Q2235308))
action atleast
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q874405
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q271669
value 1
[[{'concept': 'Q874405'}, {'concept': 'Q271669'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?w ) WHERE { { ?k property:P138 ?h . ?k rdf:type ontology:Q271669 . ?h rdf:type ontology:Q2235308 } UNION { ?h rdf:type ontology:Q2235308 . ?k rdf:type ontology:Q874405 . ?k property:P138 ?h } } GROUP BY ?h } . FILTER ( ?w >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation named after
type ship type
type social group
action find_reverse_tuple_counts
relation named after
type ship type
type landform
value 1
[[{'concept': 'social group'}, {'concept': 'landform'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?w ) WHERE { { ?k property:named_after ?h . ?k rdf:type ontology:landform . ?h rdf:type ontology:ship_type } UNION { ?h rdf:type ontology:ship_type . ?k rdf:type ontology:social_group . ?k property:named_after ?h } } GROUP BY ?h } . FILTER ( ?w >= 1 ) }
[]
ship type social group landform
Q35926 Q143615 Q899710
SYSTEM
HMS Beagle, ARA Uruguay, Victoria
Q35926 Q1564228 Q899710 Q107900 Q3006680 Q5631849 Q143615 Q847233 Q7024076 Q1898494
(c(Q874405)|c(Q271669),P138,c(Q2235308))
action atleast
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q874405
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q271669
value 1
[ANSWERS] are atleast 1 social groups and landforms named after
[[{'concept': 'Q874405'}, {'concept': 'Q271669'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?w ) WHERE { { ?k property:P138 ?h . ?k rdf:type ontology:Q271669 . ?h rdf:type ontology:Q2235308 } UNION { ?h rdf:type ontology:Q2235308 . ?k rdf:type ontology:Q874405 . ?k property:P138 ?h } } GROUP BY ?h } . FILTER ( ?w >= 1 ) }
HMS Beagle HMS Adventure Victoria Santa Maria HMS Shannon HMS Chatham ARA Uruguay HMS Discovery Niantic HMS Resolution
HMS Beagle, ARA Uruguay and Victoria are atleast 1 social groups and landforms named after
HMS Beagle ARA Uruguay Victoria
action atleast
action union
action find_reverse_tuple_counts
relation named after
type ship type
type social group
action find_reverse_tuple_counts
relation named after
type ship type
type landform
value 1
[[{'concept': 'social group'}, {'concept': 'landform'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?w ) WHERE { { ?k property:named_after ?h . ?k rdf:type ontology:landform . ?h rdf:type ontology:ship_type } UNION { ?h rdf:type ontology:ship_type . ?k rdf:type ontology:social_group . ?k property:named_after ?h } } GROUP BY ?h } . FILTER ( ?w >= 1 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P138
Q2235308 Q271669 Q2088357
USER
How many ship types are namesakes of less number of landforms and musical ensembles than that ship type ?
(c(Q271669)|c(Q2088357),P138,c(Q2235308))
[[{'concept': 'Q271669'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P138 ?y } UNION { ?x property:P138 ?y } } . ?z rdf:type ontology:Q271669 . ?y rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q2088357 }
[[{'concept': 'landform'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:named_after ?y } UNION { ?x property:named_after ?y } } . ?z rdf:type ontology:landform . ?y rdf:type ontology:ship_type . ?x rdf:type ontology:musical_ensemble }
[]
ship type landform musical ensemble
Comparative|Count over More/Less|Mult. entity type|Clarification
Q899710
SYSTEM
Did you mean Victoria ?
(c(Q271669)|c(Q2088357),P138,c(Q2235308))
[ANSWER]
[[{'concept': 'Q271669'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P138 ?y } UNION { ?x property:P138 ?y } } . ?z rdf:type ontology:Q271669 . ?y rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q2088357 }
Did you mean Victoria ?
Victoria
[[{'concept': 'landform'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:named_after ?y } UNION { ?x property:named_after ?y } } . ?z rdf:type ontology:landform . ?y rdf:type ontology:ship_type . ?x rdf:type ontology:musical_ensemble }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant HMS Beagle. Could you tell me the answer for that?
(c(Q271669)|c(Q2088357),P138,c(Q2235308))
Q35926
[[{'concept': 'Q271669'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q2235308'}]
[[{'concept': 'landform'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'ship type'}]
[]
SYSTEM
558
Q1548116 Q574079 Q1752985 Q5634305 Q389965 Q13422371 Q1564757 Q2290619 Q2259226 Q4383934 Q2557165 Q1032062 Q1778372 Q1483548 Q1254229 Q9364230 Q827360 Q2371 Q3940407 Q155222 Q4993491 Q749820 Q194096 Q1469689 Q558429 Q1812747 Q7391557 Q2258930 Q1422739 Q6158554 Q74858 Q10513230 Q1968832 Q911858 Q2448527 Q1047321 Q3614442 Q18760824 Q5634951 Q3273486 Q2301794 Q820879 Q978671 Q2703331 Q19303904 Q609925 Q5632411 Q554838 Q11416678 Q10515261 Q5971123 Q6109002 Q1887991 Q5631498 Q6141010 Q10513085 Q2573043 Q7198244 Q1971215 Q900379 Q10513243 Q5633568 Q3206808 Q2166261 Q5632178 Q4351305 Q4040220 Q3903735 Q1564571 Q52901 Q5634182 Q1565629 Q32770 Q32771 Q19801858 Q75035 Q283452 Q2506862 Q3424471 Q280710 Q5633971 Q6138862 Q5632563 Q390455 Q255306 Q6159079 Q4351939 Q5636029 Q2837649 Q12766634 Q562674 Q137256 Q10513104 Q2038001 Q16846235 Q4352977 Q2490432 Q820478 Q18760862 Q523960 Q7870497 Q14852061 Q464370 Q7391608 Q7391565 Q2709917 Q339124 Q262899 Q7870667 Q3798336 Q7277328 Q5631590 Q26674641 Q6141293 Q1479687 Q10515280 Q3427401 Q1138094 Q5228097 Q201639 Q912950 Q729875 Q2384053 Q2981505 Q7604010 Q2094314 Q686751 Q925439 Q19799542 Q19800534 Q661264 Q588644 Q4040143 Q4057885 Q1668136 Q2207272 Q5634498 Q10862679 Q498614 Q5601951 Q1881850 Q1602430 Q10706637 Q1351895 Q2557371 Q2494128 Q804091 Q14493958 Q10515073 Q10513290 Q324809 Q3563939 Q496778 Q1141369 Q574063 Q388075 Q18162952 Q557286 Q43464 Q2608583 Q1136398 Q4109990 Q7432747 Q960276 Q959845 Q1419883 Q18713207 Q827424 Q1078399 Q1483636 Q7391649 Q9332479 Q5634817 Q2654409 Q1062925 Q705804 Q681339 Q2273174 Q1545526 Q11457293 Q5634082 Q4347031 Q3839602 Q2269717 Q16223597 Q2008029 Q1152088 Q1258451 Q46266 Q2301492 Q46264 Q1052831 Q820669 Q838148 Q752939 Q2283194 Q1408520 Q1797485 Q4571916 Q2704292 Q920520 Q5631940 Q21152409 Q10515256 Q11269215 Q10515155 Q10515285 Q2206996 Q702335 Q6158589 Q150857 Q1475511 Q10515026 Q7866735 Q3007443 Q1303926 Q1564997 Q10493454 Q7872159 Q1372001 Q5630713 Q7870889 Q5633694 Q1500444 Q477173 Q10513279 Q221796 Q4346186 Q10884878 Q705582 Q512615 Q372672 Q3947217 Q655030 Q5397127 Q446316 Q18921160 Q2573281 Q476096 Q1139653 Q615525 Q210651 Q3124982 Q5631537 Q7277388 Q3544577 Q10862664 Q730273 Q1129569 Q18762809 Q7874569 Q5632611 Q2543125 Q10862685 Q4290731 Q4040071 Q2070201 Q659894 Q11707944 Q1431226 Q4386720 Q7871181 Q3395651 Q10712138 Q5630245 Q10884907 Q5634350 Q228680 Q2208180 Q677346 Q1262390 Q210223 Q3237833 Q4346763 Q3061861 Q1065337 Q8408069 Q2859286 Q16496700 Q14950169 Q3225605 Q4355074 Q19013671 Q1373432 Q116335 Q19364025 Q311245 Q15444128 Q5631274 Q5972671 Q7867565 Q10513231 Q175437 Q5629241 Q678015 Q839203 Q1236027 Q5632025 Q5632924 Q5632389 Q11868642 Q155159 Q475540 Q1564604 Q5631471 Q1572254 Q5633629 Q2468207 Q1232851 Q2638679 Q7866115 Q13376303 Q5634553 Q5633707 Q11660152 Q312224 Q10884889 Q10884888 Q5632418 Q331745 Q3750543 Q10515060 Q4353591 Q10884884 Q1032037 Q16109063 Q7277387 Q141667 Q656632 Q9385256 Q2992278 Q1881852 Q3544580 Q6319364 Q3687436 Q3411691 Q4801479 Q10515162 Q175967 Q18760894 Q5730112 Q694474 Q15104547 Q11151506 Q9367948 Q5502108 Q5634804 Q2252131 Q704128 Q1324247 Q7866980 Q3699672 Q5630379 Q10513165 Q1258270 Q9353884 Q5206186 Q2377914 Q18760809 Q907779 Q477460 Q548745 Q1476140 Q2207152 Q4291176 Q567416 Q9284810 Q5635044 Q3013847 Q9137721 Q7408497 Q1564158 Q10515051 Q1708772 Q2707962 Q2342404 Q727245 Q543302 Q46195 Q7867304 Q5632696 Q2311446 Q2713873 Q15621165 Q289870 Q7869595 Q1474340 Q21735946 Q1930867 Q321007 Q3314897 Q11679476 Q158427 Q730305 Q4052218 Q11707318 Q2704642 Q5472679 Q25653 Q888842 Q10513296 Q2349208 Q648831 Q2623266 Q7875718 Q156962 Q19169440 Q4290724 Q1473375 Q9364207 Q4040064 Q27454 Q4358483 Q1761672 Q1502183 Q10513127 Q4351910 Q2116259 Q10862600 Q2717194 Q15117029 Q10515173 Q3621539 Q3771903 Q680257 Q11262560 Q18760843 Q1473898 Q119397 Q7866572 Q1071182 Q2829090 Q4958923 Q1500360 Q3604134 Q576829 Q6011826 Q15179941 Q11707534 Q10513226 Q10513227 Q10513221 Q4882507 Q3840157 Q838125 Q1552451 Q18760834 Q3278681 Q513634 Q4410121 Q1125602 Q4040126 Q10515274 Q4040081 Q16573 Q10515272 Q7868365 Q1546204 Q5473685 Q2008002 Q6144457 Q4300728 Q755358 Q167085 Q5631646 Q10513099 Q5631645 Q5631640 Q13728696 Q4352699 Q1324124 Q7024076 Q428341 Q2469372 Q10884898 Q10884899 Q5631243 Q10884891 Q5495178 Q4206524 Q1266647 Q1328905 Q6142192 Q4346742 Q4369538 Q765514 Q824787 Q7868281 Q1347693 Q7871779 Q505312 Q1565648 Q5633942 Q3927914 Q179246 Q5631836 Q1117730 Q5972684 Q1920904 Q1046629 Q3748278 Q274924 Q3737315 Q2116640 Q14509227 Q7867003 Q2123826 Q7867000 Q2454760 Q1444474 Q190542 Q2029488 Q2121074 Q15275627 Q4352629 Q10515189 Q10515188 Q4386686 Q10515187 Q449016 Q215010 Q6127462 Q934571 Q3274010 Q168165 Q187622 Q4352812 Q623070 Q3224180 Q688532 Q152179 Q358971 Q192381 Q4442824 Q3905677 Q5630820 Q463161 Q7866225 Q857891 Q2712235 Q4727706 Q4301093 Q698414 Q14565078 Q4026798 Q128472 Q812102 Q82257 Q3015138 Q819361 Q2060512 Q18691244 Q7867597 Q118203 Q4273218 Q1117331 Q698468 Q689046
(c(Q271669)|c(Q2088357),P138,c(Q2235308))
[ANSWER]
[[{'concept': 'Q271669'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P138 ?y } UNION { ?x property:P138 ?y } } . ?z rdf:type ontology:Q271669 . ?y rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q2088357 }
HMS Dido SMS Deutschland MS Voyager of the Seas HMS Shannon Discovery Japanese torpedo boat Tomozuru HMS Gloucester Italian cruiser Duca degli Abruzzi Japanese submarine I-15 USS Brooke Antarctic HMS Nelson USS Bainbridge USS Wasp SMS Huszár USS Wasp USS Nautilus Celebrity Solstice Roma German battleship Scharnhorst HMS Näcken Russian submarine TK-208 Dmitri Donskoi HMS Greyhound USS Tennessee SMS Kronprinz Erzherzog Rudolf Japanese cruiser Takao SM U-151 HMS Speedy USS Ohio Japanese destroyer Tachibana HMS Attacker HMS Halland RMS Oceanic Endurance USS Portland USS Barracuda Italian submarine Ammiraglio Cagni FS Catinat HMS Whitby USS Kearsarge USS George Washington HNoMS Otra USS Boston MS Sovereign SMS Temes HMS Warrior HMS Ferret SMS Prinz Adalbert Japanese submarine Ro-60 HMS Västergötland USS Sturgeon JS Hiuchi USS Long Beach HMS Banshee Japanese submarine I-201 HMS Altair HMS Avenger Pisces V USS Seawolf HMS Bounty HMS Hugin HMS Odin French ship Astrolabe USS Los Angeles HMS Doterel HMS Oberon HMS Royal Oak Pietro Calvi submarine HMS Daring HMS Sverige HMS Salmon HMS Valiant HNLMS O 19 HNLMS Walrus Rhein Japanese cruiser Asama HMS Canada USS Colorado USS Baltimore HMS Invincible HMS Rainbow Spanish frigate Santa María HMS Gipsy Japanese cruiser Agano Japanese battleship Kongō Japanese submarine I-9 HMS King Edward VII HMS Gotland ARA Salta (S-31) HMS Lion USS Essex HMS Erebus HMS Arkö Russian submarine B-585 Saint Petersburg Japanese submarine I-12 USS Cannon Italian cruiser Raimondo Montecuccoli SM U-27 FS Forbin SMS Kaiser Friedrich III USS James Madison Karel Doorman USS Nautilus SM U-93 SM U-20 Japanese submarine I-174 USS New Mexico Italian battleship Littorio USS Kanawha Indomito ROCS Cheng Kung HMS Blackwood Amsterdam USS Benjamin Franklin USS Balao HMS Öland Italian cruiser Cesare Rossarol Japanese battleship Tosa USS Anchorage USS Kidd ORP Orzeł HMS Chatham Russian battleship Peresvet French ship Mistral Statendam Italian battleship Andrea Doria French armoured cruiser Amiral Charner HMAS Canberra HMS Cherokee SMS Maros HMAS Perth Anton Chekhov HMS London Russian frigate Admiral Gorshkov Russian cruiser Pallada SM U-17 HMS Sturgeon Japanese submarine I-400 French frigate Hermione Greek frigate Hydra MSC Lirica Helgoland Turunmaa USS Gerald R. Ford Japanese battleship Satsuma HMAS Adelaide Russian cruiser Bayan Mærsk Mc-Kinney Møller HMS Plejad HMS Koster SMS Graudenz Greek submarine Katsonis USS Permit USS Forrestal SMS Kaiserin HMS Ardent HMS Vestal Gorch Fock I HNLMS De Zeven Provinciën USS Brooklyn USS Mahan Finnish submarine Vetehinen Schooner Te Vega Russian battleship Evstafi SMS Sachsen SMS Königsberg FS Friant USS San Antonio USS Arleigh Burke USS New Orleans SM UB-43 SMS S13 HMS Vengeur Japanese destroyer Yūgumo Italian cruiser Luigi Cadorna Japanese battleship Shikishima HMAS Perth USS Colorado USS Ticonderoga HMS Sunfish HMS Rocket HMS Tre Kronor Luigi Durand de la Penne HNLMS Dolfijn Yugoslav submarine Hrabri ORP Wicher USS Tarawa USS Charles F. Adams HNLMS De Zeven Provinciën HNLMS K XI HNLMS Tromp Celebrity Millennium SM U-43 USS Lexington RMS Queen Mary INS Vikrant HMS Foxhound USS Freedom Japanese submarine I-7 Japanese destroyer Fubuki USS Kearsarge HMS Conflict R. H. Fauntleroy HMS Visby JS Shirane HMS Stockholm HMS Östergötland SMS Meteor (1890) HMS Edinburgh Japanese escort ship Etorofu Bismarck USS Oliver Hazard Perry HMS Mode USNS Spearhead HMS Hecla USS Saipan HMS King George V Fabian Wrede USS Navajo Russian battleship Petropavlovsk HMCS Athabaskan USS LSM(R)-188 HMS Parthian HMS Lion Emma Mærsk HMS Kaparen SMS Helgoland Japanese submarine I-52 Japanese submarine I-176 SMS Königsberg HMS Erebus Granma Italian cruiser San Giorgio Celebrity Century HMS Klas Uggla HNoMS Draug HDMS Lougen Soviet battlecruiser Kirov SMS V116 HMS King George V HMS Express HMS Eagle HMS Boyne HMS Belleisle ROKS Dokdo USS Truxtun Japanese submarine I-373 HMS Weymouth USS Cleveland FS Gauloise ironclad USS Tacoma HMS Grampus Japanese cruiser Kasuga Japanese submarine I-153 USS Cassin HMS Duke Hr. Ms. Alkmaar HMS Southampton Lillian Ngoyi USS Kitty Hawk Japanese submarine I-13 USS Lawrence Spanish cruiser Almirante Cervera Valas HMAS Armidale Japanese submarine I-46 HMS Sjöormen Japanese aircraft carrier Zuihō HNLMS O 2 USS Wasp RV Atlantis sloop French battleship Liberté ORP Mazur HMS Worcester Italian cruiser Emanuele Filiberto Duca d'Aosta ROKS Sejong the Great FS Aquitaine NRP Baptista de Andrade Viking Star Atle HMS Tiger SMS Panther Reina Regente MSC Musica TI Asia USS Yorktown (CV-5) French destroyer Le Hardi HMS Alert INS Shishumar USS Bannock HMS Hanö SS Vega HDMS Narhvalen USS Virginia HMS Birmingham HMS Astute HMS Cuckoo HMS Janus HMS Fantome KNM Ula SMS Cöln USS Pensacola HMS Discovery HMS Avon USS Bonhomme Richard HMS Osprey USNS Powhatan Dmitriy Furmanov Soviet helicopter carrier Moskva USCGC Itasca HMS Sjölejonet HMS Swordfish HMS Pearl Japanese destroyer Ikazuchi HMS Endeavour Japanese submarine I-165 Japanese submarine I-162 HMS Fervent HDMS Absalon Yugoslav submarine Osvetnik HMS Oden ORP Podhalanin Japanese submarine I-156 HMS Implacable Končar ROKS Chungmugong Yi Sun-sin HMS Terror SMS Nassau Japanese submarine I-121 Russian cruiser Moskva MSC Fantasia USS Smith (DD-17) Jymy motor torpedo boat Italian submarine Console Generale Liuzzi French ship Pégase French battleship Courbet HMS Styrbjörn INS Talwar FS Linois Blas de Lezo SMS Bayern Aigrette Chinese Hai Lung submarine SMS V1 French cruiser Troude HMS Vanguard Trento SMS Derfflinger SMS Blitz USS Abnaki Curtatone HMAS Huon HMS Draken USS Long Island SMS G7 DSRV-1 Mystic Soviet cruiser Kirov FS Alger USS Midway USS Sangamon SMS Braunschweig French submarine Gymnote SMS Wacht USS Tucker SMS Brandenburg SMS H145 HMS Zebra French ship Astrolabe SMS A1 USS America HMCS Halifax HMS Norrköping Japanese destroyer Fuyutsuki USS Northampton Japanese submarine I-168 USS North Carolina SMS Dresden HMS Nairana USS Andromeda HMS Hardy HMS Fury USS Belknap HMS Pearl HMS Mermaid USS Gearing USS Ethan Allen Terrebonne Parish tank landing ship USS Iwo Jima RMS Olympic French frigate Minerve USS Merrick German cruiser Deutschland HMS Birkenhead USS Farragut Italian battleship Regina Elena Japanese submarine I-1 Fortitude ferry Bobr Russian gunboat HMS Landsort Hr. Ms. Kortenaer HMS Bristol Italian cruiser Alberto da Giussano USS Yorktown German aircraft carrier Graf Zeppelin Consul USS Aylwin USS Fletcher USS South Dakota HMS Cyclops German cruiser Admiral Hipper USS Wickes USS Montana HMS Victoria HMS Blixt HMS Royal Sovereign USS Avenger Japanese submarine I-372 French submarine Triomphant Émeraude HMS Svea Archimede Glauco HMS Havock JS Oyashio Japanese submarine FS Descartes USS Ticonderoga HMS Challenger USNS Henry J. Kaiser Japanese battleship Katori Japanese destroyer Akizuki Brazilian submarine Tikuna Nautilus Italian submarine Acciaio Soviet aircraft carrier Kiev Meteoro Valerian Kuybyshev Kunlun Shan HMS Göteborg HMS Hajen HMS Gåssten Belgian frigate Wielingen Luigi Settembrini submarine USS Hornet HMS Comet FS D’Assas USS Zumwalt HMS Boadicea Sverdlov SMS Körös HMS Intrepid HMS Ystad HMS Elizabeth Shiratsuyu HMS Wrangel USS Cimarron SMS Brummer HMS Göteborg ORP Wodnik Japanese corvette Katsuragi USS Sampson SS Athenic SMS Magdeburg HMS Boyne HMS Arholma HMS Boxer HMS Boxer HNLMS Zwaardvis HMS Visby HMS Renown Niantic Spanish frigate Álvaro de Bazán USS Garcia Japanese submarine I-5 Japanese submarine I-6 HMS Ajax Japanese submarine I-16 HMS Handy USS O'Brien (DD-51) French submarine Dupuy de Lôme USS Nevada I-54 Japanese submarine USS Lafayette USCGC Polar Star USS Pennsylvania SMS Gazelle USS Cherokee French ironclad Gloire USS Miantonomoh SMS Wittelsbach HMS Vanguard (S28) HMS R1 Quintino Sella kayak HMS Charger Italian cruiser Andrea Doria INS Sindhughosh Hr. Ms. Tromp French submarine Casabianca Formidabile Russian aircraft carrier Admiral Kuznetsov Circé USS Connecticut JS Izumo USS Achomawi Italian submarine Brin USS Achelous Russian submarine Yury Dolgorukiy HMS Queen Elizabeth Costa Concordia USS Porter HMS Powerful Ra HMS Ehrensköld HMS Tapper HMS Sökaren USS Clemson HMS Södermanland DSV Alvin Yamato USS Pennsylvania HMS Blonde USS Mississippi NOAAS McArthur French aircraft carrier Clemenceau HMS Äran USS Knox French ship Magnifique Italian battleship Conte di Cavour SM U-10 Russian coast defense ship Admiral Ushakov MS Oasis of the Seas HMS Spica Italian cruiser Pisa HMCS Huron USS Nimitz USCGC Polar Sea USS Monitor Russian battleship Andrei Pervozvanny Alkimos USS Caldwell SMS Kaiser INS Vikrant HMS Inflexible SMS Victoria Louise French battleship Bayard RRS Discovery Pen Duick SMS König USS Independence MHC Katanpää USS Barracuda ORP Grom USS Paulding Nimrod German cruiser Leipzig German cruiser Königsberg
558
[[{'concept': 'landform'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:named_after ?y } UNION { ?x property:named_after ?y } } . ?z rdf:type ontology:landform . ?y rdf:type ontology:ship_type . ?x rdf:type ontology:musical_ensemble }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q515 Q2235308
USER
Which cities have max number of ship types as their port of registry ?
(c(Q2235308),P532,Q1773)
action argmax
action find_reverse_tuple_counts
relation P532
type Q515
type Q2235308
[{'concept': 'Q2235308'}, 'P532', 'Q1773']
SELECT DISTINCT ?c WHERE { FILTER ( ?o = ?x ) . { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:P532 ?c . ?c rdf:type ontology:Q515 . ?q rdf:type ontology:Q2235308 } GROUP BY ?c } . { SELECT DISTINCT ( MAX ( ?f ) AS ?x ) { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?f ) WHERE { ?w property:P532 ?a . ?a rdf:type ontology:Q515 . ?w rdf:type ontology:Q2235308 } GROUP BY ?a } } }
action argmax
action find_reverse_tuple_counts
relation port of registry
type city
type ship type
[{'concept': 'ship type'}, 'port of registry', 'Riga']
SELECT DISTINCT ?c WHERE { FILTER ( ?o = ?x ) . { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:port_of_registry ?c . ?c rdf:type ontology:city . ?q rdf:type ontology:ship_type } GROUP BY ?c } . { SELECT DISTINCT ( MAX ( ?f ) AS ?x ) { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?f ) WHERE { ?w property:port_of_registry ?a . ?a rdf:type ontology:city . ?w rdf:type ontology:ship_type } GROUP BY ?a } } }
[]
city ship type
Q1773 Q23482 Q2706
SYSTEM
Riga, Marseille, Bremerhaven
Q1410 Q3857 Q23482 Q606212 Q2706 Q1773
(c(Q2235308),P532,Q1773)
action argmax
action find_reverse_tuple_counts
relation P532
type Q515
type Q2235308
[ANSWERS] have max number of ship types as their port of registry
[{'concept': 'Q2235308'}, 'P532', 'Q1773']
SELECT DISTINCT ?c WHERE { FILTER ( ?o = ?x ) . { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:P532 ?c . ?c rdf:type ontology:Q515 . ?q rdf:type ontology:Q2235308 } GROUP BY ?c } . { SELECT DISTINCT ( MAX ( ?f ) AS ?x ) { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?f ) WHERE { ?w property:P532 ?a . ?a rdf:type ontology:Q515 . ?w rdf:type ontology:Q2235308 } GROUP BY ?a } } }
Gibraltar Wilhelmshaven Marseille Fremantle Bremerhaven Riga
Riga, Marseille and Bremerhaven have max number of ship types as their port of registry
Riga Marseille Bremerhaven
action argmax
action find_reverse_tuple_counts
relation port of registry
type city
type ship type
[{'concept': 'ship type'}, 'port of registry', 'Riga']
SELECT DISTINCT ?c WHERE { FILTER ( ?o = ?x ) . { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:port_of_registry ?c . ?c rdf:type ontology:city . ?q rdf:type ontology:ship_type } GROUP BY ?c } . { SELECT DISTINCT ( MAX ( ?f ) AS ?x ) { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?f ) WHERE { ?w property:port_of_registry ?a . ?a rdf:type ontology:city . ?w rdf:type ontology:ship_type } GROUP BY ?a } } }
[]