Simple Question (Direct)
Simple Question
Q19519591
P735
Q82799
USER
What is the firstname of Charlie Walsh ?
(Q19519591,P735,c(Q82799))
action filter_type
action find
entity Q19519591
relation P735
type Q82799
['Q19519591', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q19519591 property:P735 ?e . ?e rdf:type ontology:Q82799 }
Charlie Walsh
action filter_type
action find
entity Charlie Walsh
relation given name
type name
['Charlie Walsh', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Charlie_Walsh property:given_name ?e . ?e rdf:type ontology:name }
[]
name
Q16275193
SYSTEM
Charlie
Q16275193
(Q19519591,P735,c(Q82799))
action filter_type
action find
entity Q19519591
relation P735
type Q82799
The firstname of [ANSWER] Walsh is of [ANSWER]
['Q19519591', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q19519591 property:P735 ?e . ?e rdf:type ontology:Q82799 }
Charlie
The firstname of Charlie Walsh is of Charlie
Charlie
action filter_type
action find
entity Charlie Walsh
relation given name
type name
['Charlie Walsh', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Charlie_Walsh property:given_name ?e . ?e rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19519591
P21
Q290
USER
What is the sex of Charlie Walsh ?
(Q19519591,P21,c(Q290))
action filter_type
action find
entity Q19519591
relation P21
type Q290
['Q19519591', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q19519591 property:P21 ?c . ?c rdf:type ontology:Q290 }
Charlie Walsh
action filter_type
action find
entity Charlie Walsh
relation gender
type sex
['Charlie Walsh', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Charlie_Walsh property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q19519591,P21,c(Q290))
action filter_type
action find
entity Q19519591
relation P21
type Q290
The sex of Charlie Walsh is the [ANSWER]
['Q19519591', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q19519591 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
The sex of Charlie Walsh is the male
male
action filter_type
action find
entity Charlie Walsh
relation gender
type sex
['Charlie Walsh', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Charlie_Walsh property:gender ?c . ?c rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19519591
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q19519591
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q19519591 property:P27 ?b }
Charlie Walsh
action filter_type
action find
entity Charlie Walsh
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Charlie_Walsh property:country_of_citizenship ?b }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q19519591
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q19519591 property:P27 ?b }
United Kingdom
United Kingdom is that person a civilian of
United Kingdom
action filter_type
action find
entity Charlie Walsh
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Charlie_Walsh property:country_of_citizenship ?b }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q114840 Q19519591
P19
Q56061
USER
Which administrative territories were Charlie Walsh or Alphonse Joseph Charles Dubois born in ?
OR((Q19519591,P19,c(Q56061)), (Q114840,P19,c(Q56061)))
action filter_type
action union
action find
entity Q19519591
relation P19
action find
entity Q114840
relation P19
type Q56061
{'OR': [['Q19519591', 'P19', {'concept': 'Q56061'}], ['Q114840', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q19519591 property:P19 ?a } UNION { resource:Q114840 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Alphonse Joseph Charles Dubois Charlie Walsh
action filter_type
action union
action find
entity Charlie Walsh
relation place of birth
action find
entity Alphonse Joseph Charles Dubois
relation place of birth
type administrative territorial entity
{'OR': [['Charlie Walsh', 'place of birth', {'concept': 'administrative territorial entity'}], ['Alphonse Joseph Charles Dubois', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Charlie_Walsh property:place_of_birth ?a } UNION { resource:Alphonse_Joseph_Charles_Dubois property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1017 Q84
SYSTEM
Aachen, London
Q1017 Q84
OR((Q19519591,P19,c(Q56061)), (Q114840,P19,c(Q56061)))
action filter_type
action union
action find
entity Q19519591
relation P19
action find
entity Q114840
relation P19
type Q56061
Charlie Walsh or Alphonse Joseph Charles Dubois were born in [ANSWERS]
{'OR': [['Q19519591', 'P19', {'concept': 'Q56061'}], ['Q114840', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q19519591 property:P19 ?a } UNION { resource:Q114840 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Aachen London
Charlie Walsh or Alphonse Joseph Charles Dubois were born in Aachen and London
Aachen London
action filter_type
action union
action find
entity Charlie Walsh
relation place of birth
action find
entity Alphonse Joseph Charles Dubois
relation place of birth
type administrative territorial entity
{'OR': [['Charlie Walsh', 'place of birth', {'concept': 'administrative territorial entity'}], ['Alphonse Joseph Charles Dubois', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Charlie_Walsh property:place_of_birth ?a } UNION { resource:Alphonse_Joseph_Charles_Dubois property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24027386
P532
Q56061 Q2235308
USER
Which ship types have their base port as greater number of administrative territories than William & Mary ?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027386
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?r ) WHERE { ?c property:P532 ?n . ?c rdf:type ontology:Q2235308 . ?n rdf:type ontology:Q56061 } GROUP BY ?c } . FILTER ( ?r > ?a ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ontology:Q2235308 . resource:Q24027386 property:P532 ?b } } }
William & Mary
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity William & Mary
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?r ) WHERE { ?c property:port_of_registry ?n . ?c rdf:type ontology:ship_type . ?n rdf:type ontology:administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?r > ?a ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ontology:ship_type . resource:William_&_Mary property:port_of_registry ?b } } }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q35462
SYSTEM
MS Azura, SS Maxim Gorkiy, RMS Aquitania
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 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 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 greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027386
relation P532
type Q2235308
[ANSWERS] have their base port as greater number of administrative territories than William & Mary
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?r ) WHERE { ?c property:P532 ?n . ?c rdf:type ontology:Q2235308 . ?n rdf:type ontology:Q56061 } GROUP BY ?c } . FILTER ( ?r > ?a ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ontology:Q2235308 . resource:Q24027386 property:P532 ?b } } }
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 MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura 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 SS Maxim Gorkiy 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
MS Azura, SS Maxim Gorkiy and RMS Aquitania have their base port as greater number of administrative territories than William & Mary
MS Azura SS Maxim Gorkiy RMS Aquitania
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity William & Mary
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?r ) WHERE { ?c property:port_of_registry ?n . ?c rdf:type ontology:ship_type . ?n rdf:type ontology:administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?r > ?a ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ontology:ship_type . resource:William_&_Mary property:port_of_registry ?b } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24027184
P532
Q56061 Q2235308
USER
And also tell me about Lettice Catherine?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027184
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?m ) WHERE { ?x property:P532 ?o . ?o rdf:type ontology:Q56061 . ?x rdf:type ontology:Q2235308 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:Q2235308 . resource:Q24027184 property:P532 ?d } } . FILTER ( ?m > ?q ) }
Lettice Catherine
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Lettice Catherine
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?m ) WHERE { ?x property:port_of_registry ?o . ?o rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:ship_type } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:ship_type . resource:Lettice_Catherine property:port_of_registry ?d } } . FILTER ( ?m > ?q ) }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q35462
SYSTEM
MS Azura, SS Maxim Gorkiy, RMS Aquitania
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 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 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 greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027184
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?m ) WHERE { ?x property:P532 ?o . ?o rdf:type ontology:Q56061 . ?x rdf:type ontology:Q2235308 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:Q2235308 . resource:Q24027184 property:P532 ?d } } . FILTER ( ?m > ?q ) }
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 MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura 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 SS Maxim Gorkiy 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
MS Azura SS Maxim Gorkiy RMS Aquitania
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Lettice Catherine
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?m ) WHERE { ?x property:port_of_registry ?o . ?o rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:ship_type } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:ship_type . resource:Lettice_Catherine property:port_of_registry ?d } } . FILTER ( ?m > ?q ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P520
Q15688633 Q153556 Q2235308
USER
Which ship types have atleast 1 ship elements and ranged weapons as an instrument for fighting ?
(c(Q2235308),P520,c(Q15688633)|c(Q153556))
action atleast
action union
action find_tuple_counts
relation P520
type Q2235308
type Q15688633
action find_tuple_counts
relation P520
type Q2235308
type Q153556
value 1
[{'concept': 'Q2235308'}, 'P520', [{'concept': 'Q15688633'}, {'concept': 'Q153556'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) ?g WHERE { { ?g property:P520 ?e . ?g rdf:type ontology:Q2235308 . ?e rdf:type ontology:Q15688633 } UNION { ?g property:P520 ?e . ?g rdf:type ontology:Q2235308 . ?e rdf:type ontology:Q153556 } } GROUP BY ?g } . FILTER ( ?c >= 1 ) }
action atleast
action union
action find_tuple_counts
relation armament
type ship type
type ship element
action find_tuple_counts
relation armament
type ship type
type ranged weapon
value 1
[{'concept': 'ship type'}, 'armament', [{'concept': 'ship element'}, {'concept': 'ranged weapon'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) ?g WHERE { { ?g property:armament ?e . ?g rdf:type ontology:ship_type . ?e rdf:type ontology:ship_element } UNION { ?g property:armament ?e . ?g rdf:type ontology:ship_type . ?e rdf:type ontology:ranged_weapon } } GROUP BY ?g } . FILTER ( ?c >= 1 ) }
[]
ship element ranged weapon ship type
Q2402934 Q10515141 Q220239
SYSTEM
HMS Bermuda, HMS Sprängaren, HMS Hood
Q2302386 Q1935618 Q1971557 Q632460 Q1711338 Q10515141 Q4993491 Q1422734 Q368419 Q1806597 Q1422739 Q980570 Q49644 Q10513142 Q7867460 Q1470212 Q5632896 Q2164060 Q598581 Q7869921 Q2301794 Q2099267 Q2712823 Q11707025 Q10515269 Q10515264 Q10515262 Q10515261 Q5971123 Q10515037 Q968667 Q10513087 Q5634430 Q478298 Q2469792 Q1715770 Q10515088 Q2302353 Q52905 Q52901 Q5970896 Q1356916 Q32771 Q1786716 Q1862142 Q632503 Q1999797 Q821843 Q5636029 Q5636027 Q2003791 Q761869 Q2003799 Q924151 Q10513109 Q10515211 Q10515190 Q472986 Q7870497 Q1734868 Q1755178 Q7868733 Q10515103 Q10515102 Q10515107 Q5964938 Q749868 Q4352800 Q2003808 Q7870122 Q6141356 Q747983 Q6144695 Q6141293 Q220239 Q1788001 Q1718601 Q1337120 Q2029200 Q1754034 Q1260634 Q902746 Q1781111 Q5227796 Q10515073 Q10515071 Q10515077 Q10515075 Q5968178 Q2030604 Q2302375 Q2003758 Q301073 Q3264869 Q1094682 Q308909 Q923779 Q5399416 Q3006912 Q1971589 Q499055 Q5231481 Q13360784 Q543593 Q1272420 Q4347031 Q10513150 Q11288203 Q498760 Q6132017 Q1459982 Q10513270 Q928457 Q10515253 Q6138608 Q10515258 Q10515155 Q10515157 Q10515286 Q4052028 Q1564260 Q2000900 Q974939 Q762384 Q2976013 Q2594353 Q10513273 Q2470102 Q10513279 Q1029271 Q6138306 Q1784063 Q2091881 Q2091889 Q1140782 Q670415 Q371294 Q10515220 Q685632 Q7873770 Q600125 Q5229866 Q5634350 Q10515163 Q1467248 Q1566425 Q1687136 Q4352643 Q3211336 Q52897 Q2006011 Q165916 Q976846 Q10515113 Q535556 Q10513230 Q4405311 Q6144946 Q10515175 Q206562 Q2005518 Q7869705 Q10515018 Q1344146 Q4384713 Q10515013 Q962041 Q1789356 Q7872657 Q975988 Q6144738 Q616899 Q298395 Q2471518 Q7874656 Q503453 Q1778502 Q1787992 Q1783702 Q4352822 Q508531 Q1596193 Q11323769 Q7874158 Q699713 Q10515231 Q1249407 Q10515233 Q1342496 Q10515237 Q1545471 Q2166261 Q5232273 Q631148 Q567967 Q7867378 Q604857 Q10515055 Q10515051 Q10515053 Q1259156 Q7874470 Q7871815 Q1761221 Q1578014 Q7874906 Q631540 Q1474340 Q10723800 Q1472052 Q5971096 Q6138564 Q6138562 Q2001200 Q6138393 Q5633432 Q10514984 Q1631200 Q1601564 Q5226794 Q1628755 Q2471257 Q10515173 Q10515176 Q1573507 Q7869984 Q667833 Q820203 Q1725498 Q1371659 Q993944 Q694531 Q43464 Q1674076 Q1760185 Q10513229 Q6138349 Q7874949 Q1240203 Q10515279 Q10515274 Q11348852 Q844743 Q5473685 Q10513092 Q10513095 Q10513098 Q1453075 Q205637 Q10513251 Q4352699 Q2093829 Q4352756 Q1973096 Q1437413 Q510214 Q2117332 Q1356922 Q5636040 Q4346742 Q1287639 Q632457 Q1739268 Q688771 Q2005990 Q174818 Q5636039 Q5636031 Q1559709 Q3381131 Q10513079 Q10515188 Q7869683 Q7869682 Q10515187 Q748373 Q1783713 Q919768 Q7875454 Q10515138 Q10515139 Q4352812 Q10515046 Q570993 Q4442824 Q10513219 Q4352711 Q6144928 Q2402934 Q6138496 Q935791 Q7874855 Q1683284 Q1379656 Q4354884 Q4354888 Q2117295 Q1816732 Q1971094 Q13230646 Q2001217 Q663075 Q5971155 Q1380250
(c(Q2235308),P520,c(Q15688633)|c(Q153556))
action atleast
action union
action find_tuple_counts
relation P520
type Q2235308
type Q15688633
action find_tuple_counts
relation P520
type Q2235308
type Q153556
value 1
[ANSWERS] have atleast 1 ship elements and ranged weapons as an instrument for fighting
[{'concept': 'Q2235308'}, 'P520', [{'concept': 'Q15688633'}, {'concept': 'Q153556'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) ?g WHERE { { ?g property:P520 ?e . ?g rdf:type ontology:Q2235308 . ?e rdf:type ontology:Q15688633 } UNION { ?g property:P520 ?e . ?g rdf:type ontology:Q2235308 . ?e rdf:type ontology:Q153556 } } GROUP BY ?g } . FILTER ( ?c >= 1 ) }
USS Pasadena USS Pennsylvania USS La Jolla USS Sam Houston USS Lewis and Clark HMS Sprängaren HMS Näcken USS Michigan USS Seahorse USS Philadelphia USS Ohio USS Cheyenne France HMS Capella USS Aspro USS Honolulu HMS Iron Duke HMS Vanguard USS Dallas USS Gurnard USS George Washington Plejad-class torpedo boat USS Tautog HMS Forester (1911) HMS Wasa HMS Västerås HMS Västervik HMS Västergötland USS Sturgeon HMS Najad USS Maryland HMS Altair HMS St Albans USS Samuel B. Roberts USS John C. Calhoun USS Wyoming HMS Regulus USS Memphis HMS Drottning Victoria HMS Sverige USS Ray USS Baton Rouge HNLMS Walrus USS Alaska USS Boston USS John Marshall USS Tucson USS Francis Scott Key HMS Gotland HMS Carlskrona USS Albuquerque Grisha class corvette USS Newport News USS Maine HMS Astrea HMS Umeå HMS Tapperheten USS Bremerton USS James Madison Kashin-class destroyer USS Florida USS Daniel Boone HMS Sjöbjörnen HMS Sirius HMS Sjöhunden USS Spadefish USS Scranton HMS Småland USS Columbus USS Henry L. Stimson USS Henry Clay USS Columbia USS L. Mendel Rivers USS Benjamin Franklin HMS Hood USS West Virginia USS Buffalo USS Narwhal HMS Göta Lejon K-222 USS Helena Bravo-class submarine USS Birmingham USS Bergall HMS Plejad HMS Piteå HMS Pollux HMS Polaris USS Batfish Turya-class torpedo boat USS Toledo USS Santa Fe Spica-class torpedo boat Tre Kronor-class cruiser HMS Claes Uggla HMS Dreadnought Nanuchka class corvette HMS Mode USS Drum USS Charlotte USS Pintado USS Sea Devil HMS Sjöhästen SMS Dresden USS Asheville HMS Tre Kronor HMS Castor USS Will Rogers USS Guitarro USS Theodore Roosevelt USS Kentucky HMS Jägaren Kiev-class aircraft carrier HMS Virgo USS Woodrow Wilson HMS Väktaren HMS Stockholm HMS Strömstad HMS Östergötland German submarine U-361 HMS Ajax USS Key West Kortenaer-class frigate Visby class corvette Sverige-class coastal defence ship HMS Gotland HMS Kalmar USS Mariano G. Vallejo HMS Kaparen USS Greeneville USS Nathan Hale USS Cincinnati USS Finback USS Sand Lance HMS Illustrious Soviet command ship SSV-33 USS Providence HMS Uttern USS Olympia USS Sam Rayburn USS Silversides USS James K. Polk HMS Sjöormen HMS Styrbjörn USS Parche USS Rhode Island USS Houston HMS Helsingborg Äran-class coastal defence ship HMS Gustav V USS Annapolis USS Montpelier USS Grayling HMS Sjölejonet BAP Almirante Grau HMS Halland HMS Psilander USS Casimir Pulaski HMS Svensksund Kotlin-class destroyer USS Baltimore USS George Washington Carver HMS Malmö HMS Fylgia USS Patrick Henry HMS Magne Halland-class destroyer USS Omaha USS Pargo USS Puffer USS Billfish USS City of Corpus Christi Östergötland-class destroyer USS Von Steuben USS Tecumseh USS Kamehameha USS Nebraska USS Tennessee USS Salt Lake City HMS Tirfing USS Nevada USS Glenard P. Lipscomb USS Nathanael Greene USS Simon Bolivar Parchim class corvette HMS Varberg USS Miami HMS Vargen HMS Oscar II HMS Vega Type 42 destroyer USS Los Angeles USS Bluefish Bora-class guided missile hovercraft USS Chicago USS Archerfish USS Boise HMS Nynäshamn HMS Norrköping HMS Norrtälje HMS Dristigheten USS Sunfish USS Milwaukee USS Alabama USS California USS Tunny USS Thomas Jefferson USS Ethan Allen Ystad-class missile boat USS Springfield USS William H. Bates USS John Adams USS Alexander Hamilton USS Jefferson City USS Cavalla HMS Montrose HMS Luleå Kara-class cruiser USS Atlanta USS Hawkbill USS Mississippi USS Stonewall Jackson HMS Svea HMS Sveparen USS Minneapolis–Saint Paul USS Hammerhead USS Daniel Webster USS Andrew Jackson USS Louisiana Pauk class corvette USS San Juan Koni-class frigate HNLMS De Zeven Provinciën USS Augusta USS Portsmouth HMS Halmstad USS Lapon USS Ulysses S. Grant HMS Smyge MHS Öregrund HMS Ystad USS Lewis B. Puller USS Robert E. Lee HMS Göteborg HMS Antares HMS Arcturus HMS Argo USS Hampton Krivak-class frigate HMS Hälsingland HMS Visby USS Tullibee HMS Härnösand USS Henry M. Jackson USS Jacksonville USS Alexandria Stockholm class corvette Japanese destroyer Murasame HMS Älvsnabben USS Lafayette USS Groton USS Thomas A. Edison Norrköping-class missile boat Tarantul class corvette USS Albany USS Hyman G. Rickover HMS Uppland HMS Halland Göteborg-class corvette HNoMS Svenner HMS Aldebaran HMS Sökaren USS George C. Marshall USS George Bancroft HMS Södermanland USS Topeka USS Phoenix USS New York City USS Whale HMS Springaren HMS Springaren HMS Äran HMS Nordkaparen USS James Monroe HMS Spica HMS Gävle HMS Sundsvall USS Flying Fish HMS Bermuda USS Queenfish USS San Francisco USS Trepang USS Georgia USS Indianapolis HMS Nyköping HMS Karlstad USS Hartford De Zeven Provinciën-class cruiser USS Oklahoma City HMS Rigel USS Pittsburgh USS Richard B. Russell USS Pogy USS Louisville
HMS Bermuda, HMS Sprängaren and HMS Hood have atleast 1 ship elements and ranged weapons as an instrument for fighting
HMS Bermuda HMS Sprängaren HMS Hood
action atleast
action union
action find_tuple_counts
relation armament
type ship type
type ship element
action find_tuple_counts
relation armament
type ship type
type ranged weapon
value 1
[{'concept': 'ship type'}, 'armament', [{'concept': 'ship element'}, {'concept': 'ranged weapon'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) ?g WHERE { { ?g property:armament ?e . ?g rdf:type ontology:ship_type . ?e rdf:type ontology:ship_element } UNION { ?g property:armament ?e . ?g rdf:type ontology:ship_type . ?e rdf:type ontology:ranged_weapon } } GROUP BY ?g } . FILTER ( ?c >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7887612 Q35462
P27 P17
Q15617994
USER
Which administrative territories are RMS Aquitania a part of or are the native countriesof Frédéric van Rossum ?
OR((Q35462,P17,c(Q15617994)), (Q7887612,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q35462
relation P17
action find
entity Q7887612
relation P27
type Q15617994
{'OR': [['Q35462', 'P17', {'concept': 'Q15617994'}], ['Q7887612', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q35462 property:P17 ?z } UNION { resource:Q7887612 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Frédéric van Rossum RMS Aquitania
action filter_type
action union
action find
entity RMS Aquitania
relation country
action find
entity Frédéric van Rossum
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['RMS Aquitania', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Frédéric van Rossum', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:RMS_Aquitania property:country ?z } UNION { resource:Frédéric_van_Rossum property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q145
SYSTEM
Belgium, United Kingdom
Q31 Q145
OR((Q35462,P17,c(Q15617994)), (Q7887612,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q35462
relation P17
action find
entity Q7887612
relation P27
type Q15617994
[ANSWERS] are RMS Aquitania a part of or are the native countriesof Frédéric van Rossum
{'OR': [['Q35462', 'P17', {'concept': 'Q15617994'}], ['Q7887612', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q35462 property:P17 ?z } UNION { resource:Q7887612 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Belgium United Kingdom
Belgium and United Kingdom are RMS Aquitania a part of or are the native countriesof Frédéric van Rossum
Belgium United Kingdom
action filter_type
action union
action find
entity RMS Aquitania
relation country
action find
entity Frédéric van Rossum
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['RMS Aquitania', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Frédéric van Rossum', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:RMS_Aquitania property:country ?z } UNION { resource:Frédéric_van_Rossum property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q31 Q145
P47
Q1048835
USER
Which political territories are bordered by those administrative territories ?
(Q31,P47,c(Q1048835)) (Q145,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
['Q31', 'P47', {'concept': 'Q1048835'}] ['Q145', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?i property:P47 ?n . ?n rdf:type ontology:Q1048835 . VALUES ( ?i ) { ( resource:Q31 ) ( resource:Q145 ) } }
Belgium United Kingdom
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Belgium', 'shares border with', {'concept': 'political territorial entity'}] ['United Kingdom', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?i property:shares_border_with ?n . ?n rdf:type ontology:political_territorial_entity . VALUES ( ?i ) { ( resource:Belgium ) ( resource:United_Kingdom ) } }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
(Q31,P47,c(Q1048835)) (Q145,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
And [ANSWERS] are bordered by those administrative territories
['Q31', 'P47', {'concept': 'Q1048835'}] ['Q145', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?i property:P47 ?n . ?n rdf:type ontology:Q1048835 . VALUES ( ?i ) { ( resource:Q31 ) ( resource:Q145 ) } }
Germany Denmark
And Germany and Denmark are bordered by those administrative territories
Germany Denmark
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Belgium', 'shares border with', {'concept': 'political territorial entity'}] ['United Kingdom', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?i property:shares_border_with ?n . ?n rdf:type ontology:political_territorial_entity . VALUES ( ?i ) { ( resource:Belgium ) ( resource:United_Kingdom ) } }
[]