Simple Question (Direct)
Simple Question
Q906873
P641
Q349
USER
What did András Dlusztus participate in ?
(Q906873,P641,c(Q349))
action filter_type
action find
entity Q906873
relation P641
type Q349
['Q906873', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q906873 property:P641 ?s . ?s rdf:type ontology:Q349 }
András Dlusztus
action filter_type
action find
entity András Dlusztus
relation sport
type sport
['András Dlusztus', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:András_Dlusztus property:sport ?s . ?s rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q906873,P641,c(Q349))
action filter_type
action find
entity Q906873
relation P641
type Q349
András Dlusztus participated in [ANSWER]
['Q906873', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q906873 property:P641 ?s . ?s rdf:type ontology:Q349 }
association football
András Dlusztus participated in association football
association football
action filter_type
action find
entity András Dlusztus
relation sport
type sport
['András Dlusztus', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:András_Dlusztus property:sport ?s . ?s rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q906873
P40
Q502895
USER
Which person has András Dlusztus as an offspring ?
(c(Q502895),P40,Q906873)
action filter_type
action find_reverse
entity Q906873
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q906873']
SELECT DISTINCT ?z WHERE { ?z property:P40 resource:Q906873 . ?z rdf:type ontology:Q502895 }
András Dlusztus
action filter_type
action find_reverse
entity András Dlusztus
relation child
type common name
[{'concept': 'common name'}, 'child', 'András Dlusztus']
SELECT DISTINCT ?z WHERE { ?z property:child resource:András_Dlusztus . ?z rdf:type ontology:common_name }
[]
common name
Q906871
SYSTEM
Imre Dlusztus
Q906871
(c(Q502895),P40,Q906873)
action filter_type
action find_reverse
entity Q906873
relation P40
type Q502895
[ANSWER] has András Dlusztus as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q906873']
SELECT DISTINCT ?z WHERE { ?z property:P40 resource:Q906873 . ?z rdf:type ontology:Q502895 }
Imre Dlusztus
Imre Dlusztus has András Dlusztus as an offspring
Imre Dlusztus
action filter_type
action find_reverse
entity András Dlusztus
relation child
type common name
[{'concept': 'common name'}, 'child', 'András Dlusztus']
SELECT DISTINCT ?z WHERE { ?z property:child resource:András_Dlusztus . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q906871
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q906871,P19,c(Q56061))
action filter_type
action find
entity Q906871
relation P19
type Q56061
['Q906871', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q906871 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Imre Dlusztus
action filter_type
action find
entity Imre Dlusztus
relation place of birth
type administrative territorial entity
['Imre Dlusztus', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Imre_Dlusztus property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q81581
SYSTEM
Szeged
Q81581
(Q906871,P19,c(Q56061))
action filter_type
action find
entity Q906871
relation P19
type Q56061
That person was born in [ANSWER]
['Q906871', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q906871 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Szeged
That person was born in Szeged
Szeged
action filter_type
action find
entity Imre Dlusztus
relation place of birth
type administrative territorial entity
['Imre Dlusztus', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Imre_Dlusztus property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q81581
P1376
Q1162835
USER
What has that administrative territory as its capital ?
(Q81581,P1376,c(Q1162835))
action filter_type
action find
entity Q81581
relation P1376
type Q1162835
['Q81581', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?u WHERE { resource:Q81581 property:P1376 ?u . ?u rdf:type ontology:Q1162835 }
Szeged
action filter_type
action find
entity Szeged
relation capital of
type district of Hungary
['Szeged', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?u WHERE { resource:Szeged property:capital_of ?u . ?u rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q260215
SYSTEM
Szeged  District
Q260215
(Q81581,P1376,c(Q1162835))
action filter_type
action find
entity Q81581
relation P1376
type Q1162835
Szeged District has that administrative territory as its capital
['Q81581', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?u WHERE { resource:Q81581 property:P1376 ?u . ?u rdf:type ontology:Q1162835 }
Szeged  District
Szeged District has that administrative territory as its capital
Szeged  District
action filter_type
action find
entity Szeged
relation capital of
type district of Hungary
['Szeged', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?u WHERE { resource:Szeged property:capital_of ?u . ?u rdf:type ontology:district_of_Hungary }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24026972
P532
Q56061 Q2235308
USER
Which ship types have greater number of administrative territories as their base harbour than Diligence ?
(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 Q24026972
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { resource:Q24026972 property:P532 ?i . ?i rdf:type ontology:Q2235308 } } . FILTER ( ?l > ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?l ) WHERE { ?n property:P532 ?b . ?b rdf:type ontology:Q56061 . ?n rdf:type ontology:Q2235308 } GROUP BY ?n } }
Diligence
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 Diligence
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { resource:Diligence property:port_of_registry ?i . ?i rdf:type ontology:ship_type } } . FILTER ( ?l > ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?l ) WHERE { ?n property:port_of_registry ?b . ?b rdf:type ontology:administrative_territorial_entity . ?n rdf:type ontology:ship_type } GROUP BY ?n } }
[]
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 Q24026972
relation P532
type Q2235308
[ANSWERS] have greater number of administrative territories as their base harbour than Diligence
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { resource:Q24026972 property:P532 ?i . ?i rdf:type ontology:Q2235308 } } . FILTER ( ?l > ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?l ) WHERE { ?n property:P532 ?b . ?b rdf:type ontology:Q56061 . ?n rdf:type ontology:Q2235308 } GROUP BY ?n } }
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 greater number of administrative territories as their base harbour than Diligence
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 Diligence
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { resource:Diligence property:port_of_registry ?i . ?i rdf:type ontology:ship_type } } . FILTER ( ?l > ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?l ) WHERE { ?n property:port_of_registry ?b . ?b rdf:type ontology:administrative_territorial_entity . ?n rdf:type ontology:ship_type } GROUP BY ?n } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24027227
P532
Q56061 Q2235308
USER
And how about Utopia?
(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 Q24027227
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Q24027227 property:P532 ?q . ?q rdf:type ontology:Q2235308 } } . FILTER ( ?x > ?s ) . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?x ) WHERE { ?c property:P532 ?h . ?c rdf:type ontology:Q2235308 . ?h rdf:type ontology:Q56061 } GROUP BY ?c } }
Utopia
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 Utopia
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Utopia property:port_of_registry ?q . ?q rdf:type ontology:ship_type } } . FILTER ( ?x > ?s ) . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?x ) WHERE { ?c property:port_of_registry ?h . ?c rdf:type ontology:ship_type . ?h rdf:type ontology:administrative_territorial_entity } GROUP BY ?c } }
[]
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 Q24027227
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Q24027227 property:P532 ?q . ?q rdf:type ontology:Q2235308 } } . FILTER ( ?x > ?s ) . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?x ) WHERE { ?c property:P532 ?h . ?c rdf:type ontology:Q2235308 . ?h rdf:type ontology:Q56061 } GROUP BY ?c } }
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 Utopia
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Utopia property:port_of_registry ?q . ?q rdf:type ontology:ship_type } } . FILTER ( ?x > ?s ) . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?x ) WHERE { ?c property:port_of_registry ?h . ?c rdf:type ontology:ship_type . ?h rdf:type ontology:administrative_territorial_entity } GROUP BY ?c } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1502183
P138
Q2235308 Q2235308 Q15324
USER
How many ship types are the origin of less number of ship types and bodies of water than HMS Victoria ?
(c(Q2235308)|c(Q15324),P138,c(Q2235308))
action count
action less
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q2235308
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q15324
action count
action filter_multi_types
action find_reverse
entity Q1502183
relation P138
type Q2235308
type Q15324
[[{'concept': 'Q2235308'}, {'concept': 'Q15324'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) ?o WHERE { { ?j property:P138 ?o . ?o rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q2235308 } UNION { ?j property:P138 ?o . ?o rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q15324 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:P138 resource:Q1502183 . { { ?k rdf:type ontology:Q2235308 } UNION { ?k rdf:type ontology:Q15324 } } } } . FILTER ( ?w < ?x ) }
HMS Victoria
action count
action less
action union
action find_reverse_tuple_counts
relation named after
type ship type
type ship type
action find_reverse_tuple_counts
relation named after
type ship type
type body of water
action count
action filter_multi_types
action find_reverse
entity HMS Victoria
relation named after
type ship type
type body of water
[[{'concept': 'ship type'}, {'concept': 'body of water'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) ?o WHERE { { ?j property:named_after ?o . ?o rdf:type ontology:ship_type . ?j rdf:type ontology:ship_type } UNION { ?j property:named_after ?o . ?o rdf:type ontology:ship_type . ?j rdf:type ontology:body_of_water } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:named_after resource:HMS_Victoria . { { ?k rdf:type ontology:ship_type } UNION { ?k rdf:type ontology:body_of_water } } } } . FILTER ( ?w < ?x ) }
[]
ship type ship type body of water
SYSTEM
144
Q5634305 Q389965 Q13422371 Q2259226 Q2557165 Q827360 Q4993491 Q749820 Q7391557 Q1422739 Q911858 Q1047321 Q3614442 Q2301794 Q11416678 Q10515261 Q5971123 Q6141010 Q7198244 Q1971215 Q5633568 Q3206808 Q2166261 Q4351305 Q3903735 Q1565629 Q32770 Q32771 Q5633971 Q6159079 Q5636029 Q2837649 Q2038001 Q16846235 Q820478 Q7870497 Q7391608 Q7391565 Q2709917 Q6141293 Q1479687 Q912950 Q2207272 Q10862679 Q1564228 Q899710 Q3563939 Q496778 Q4109990 Q7432747 Q7391649 Q2269717 Q16223597 Q2301492 Q820669 Q1408520 Q4571916 Q21152409 Q3007443 Q5630713 Q5633694 Q4346186 Q10884878 Q372672 Q615525 Q10862664 Q5632611 Q10862685 Q107900 Q4386720 Q7871181 Q10884907 Q5634350 Q2208180 Q210223 Q5631274 Q5972671 Q175437 Q5629241 Q678015 Q1236027 Q11868642 Q1564604 Q3006680 Q7866115 Q13376303 Q10884889 Q10884888 Q3750543 Q10884884 Q9385256 Q3687436 Q15104547 Q11151506 Q10513165 Q5206186 Q3013847 Q2342404 Q2311446 Q5631849 Q1474340 Q2704642 Q5472679 Q25653 Q19169440 Q10862600 Q2717194 Q15117029 Q3621539 Q3771903 Q11262560 Q119397 Q143615 Q4958923 Q1500360 Q3604134 Q10513227 Q3840157 Q1552451 Q847233 Q13728696 Q7024076 Q10884898 Q10884899 Q10884891 Q1266647 Q6142192 Q4346742 Q1565648 Q5633942 Q179246 Q5972684 Q1898494 Q3737315 Q2123826 Q2454760 Q15275627 Q10515187 Q449016 Q152179 Q5630820 Q4727706 Q82257 Q7867597
(c(Q2235308)|c(Q15324),P138,c(Q2235308))
action count
action less
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q2235308
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q15324
action count
action filter_multi_types
action find_reverse
entity Q1502183
relation P138
type Q2235308
type Q15324
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q15324'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) ?o WHERE { { ?j property:P138 ?o . ?o rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q2235308 } UNION { ?j property:P138 ?o . ?o rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q15324 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:P138 resource:Q1502183 . { { ?k rdf:type ontology:Q2235308 } UNION { ?k rdf:type ontology:Q15324 } } } } . FILTER ( ?w < ?x ) }
HMS Shannon Discovery Japanese torpedo boat Tomozuru Japanese submarine I-15 Antarctic USS Nautilus HMS Näcken Russian submarine TK-208 Dmitri Donskoi SM U-151 USS Ohio Endurance USS Barracuda Italian submarine Ammiraglio Cagni USS George Washington Japanese submarine Ro-60 HMS Västergötland USS Sturgeon Japanese submarine I-201 Pisces V USS Seawolf HMS Odin French ship Astrolabe USS Los Angeles HMS Oberon Pietro Calvi submarine HMS Valiant HNLMS O 19 HNLMS Walrus HMS Rainbow Japanese submarine I-9 HMS Gotland ARA Salta (S-31) Russian submarine B-585 Saint Petersburg Japanese submarine I-12 SM U-27 USS James Madison SM U-93 SM U-20 Japanese submarine I-174 USS Benjamin Franklin USS Balao ORP Orzeł SM U-17 Japanese submarine I-400 HMS Adventure Victoria Greek submarine Katsonis USS Permit Finnish submarine Vetehinen Schooner Te Vega SM UB-43 HNLMS Dolfijn Yugoslav submarine Hrabri HNLMS K XI SM U-43 HMS Foxhound Japanese submarine I-7 R. H. Fauntleroy HMS Hecla HMCS Athabaskan HMS Parthian Japanese submarine I-52 Japanese submarine I-176 Granma HMS Express Japanese submarine I-373 HMS Grampus Japanese submarine I-153 Santa Maria Japanese submarine I-13 USS Lawrence Japanese submarine I-46 HMS Sjöormen HNLMS O 2 sloop HMS Alert INS Shishumar SS Vega HDMS Narhvalen USS Virginia HMS Astute KNM Ula HMS Discovery HMS Shannon USCGC Itasca HMS Sjölejonet Japanese submarine I-165 Japanese submarine I-162 Yugoslav submarine Osvetnik Japanese submarine I-156 Japanese submarine I-121 Italian submarine Console Generale Liuzzi Aigrette Chinese Hai Lung submarine HMS Draken DSRV-1 Mystic French ship Astrolabe Japanese submarine I-168 HMS Fury HMS Chatham USS Ethan Allen Japanese submarine I-1 Fortitude ferry Consul Japanese submarine I-372 French submarine Triomphant Émeraude Archimede Glauco JS Oyashio Japanese submarine HMS Challenger ARA Uruguay Brazilian submarine Tikuna Nautilus Italian submarine Acciaio HMS Hajen Luigi Settembrini submarine HMS Comet HMS Discovery HNLMS Zwaardvis Niantic Japanese submarine I-5 Japanese submarine I-6 Japanese submarine I-16 French submarine Dupuy de Lôme I-54 Japanese submarine USS Lafayette HMS Vanguard (S28) HMS R1 kayak INS Sindhughosh HMS Resolution Circé Italian submarine Brin Russian submarine Yury Dolgorukiy Ra HMS Södermanland DSV Alvin SM U-10 HMCS Huron Alkimos RRS Discovery USS Barracuda
144
action count
action less
action union
action find_reverse_tuple_counts
relation named after
type ship type
type ship type
action find_reverse_tuple_counts
relation named after
type ship type
type body of water
action count
action filter_multi_types
action find_reverse
entity HMS Victoria
relation named after
type ship type
type body of water
[[{'concept': 'ship type'}, {'concept': 'body of water'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) ?o WHERE { { ?j property:named_after ?o . ?o rdf:type ontology:ship_type . ?j rdf:type ontology:ship_type } UNION { ?j property:named_after ?o . ?o rdf:type ontology:ship_type . ?j rdf:type ontology:body_of_water } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:named_after resource:HMS_Victoria . { { ?k rdf:type ontology:ship_type } UNION { ?k rdf:type ontology:body_of_water } } } } . FILTER ( ?w < ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q512615
P138
Q2235308 Q2235308 Q15324
USER
And what about HMS Erebus?
(c(Q2235308)|c(Q15324),P138,c(Q2235308))
action count
action less
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q2235308
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q15324
action count
action filter_multi_types
action find_reverse
entity Q512615
relation P138
type Q2235308
type Q15324
[[{'concept': 'Q2235308'}, {'concept': 'Q15324'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?k WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:Q2235308 ) ( ontology:Q15324 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2235308 ) ( ontology:Q15324 ) } } . ?o property:P138 resource:Q512615 } } . FILTER ( ?g < ?a ) }
HMS Erebus
action count
action less
action union
action find_reverse_tuple_counts
relation named after
type ship type
type ship type
action find_reverse_tuple_counts
relation named after
type ship type
type body of water
action count
action filter_multi_types
action find_reverse
entity HMS Erebus
relation named after
type ship type
type body of water
[[{'concept': 'ship type'}, {'concept': 'body of water'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?k WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:ship_type ) ( ontology:body_of_water ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ?p . VALUES ( ?p ) { ( ontology:ship_type ) ( ontology:body_of_water ) } } . ?o property:named_after resource:HMS_Erebus } } . FILTER ( ?g < ?a ) }
[]
ship type ship type body of water
SYSTEM
144
Q5634305 Q389965 Q13422371 Q2259226 Q2557165 Q827360 Q4993491 Q749820 Q7391557 Q1422739 Q911858 Q1047321 Q3614442 Q2301794 Q11416678 Q10515261 Q5971123 Q6141010 Q7198244 Q1971215 Q5633568 Q3206808 Q2166261 Q4351305 Q3903735 Q1565629 Q32770 Q32771 Q5633971 Q6159079 Q5636029 Q2837649 Q2038001 Q16846235 Q820478 Q7870497 Q7391608 Q7391565 Q2709917 Q6141293 Q1479687 Q912950 Q2207272 Q10862679 Q1564228 Q899710 Q3563939 Q496778 Q4109990 Q7432747 Q7391649 Q2269717 Q16223597 Q2301492 Q820669 Q1408520 Q4571916 Q21152409 Q3007443 Q5630713 Q5633694 Q4346186 Q10884878 Q372672 Q615525 Q10862664 Q5632611 Q10862685 Q107900 Q4386720 Q7871181 Q10884907 Q5634350 Q2208180 Q210223 Q5631274 Q5972671 Q175437 Q5629241 Q678015 Q1236027 Q11868642 Q1564604 Q3006680 Q7866115 Q13376303 Q10884889 Q10884888 Q3750543 Q10884884 Q9385256 Q3687436 Q15104547 Q11151506 Q10513165 Q5206186 Q3013847 Q2342404 Q2311446 Q5631849 Q1474340 Q2704642 Q5472679 Q25653 Q19169440 Q10862600 Q2717194 Q15117029 Q3621539 Q3771903 Q11262560 Q119397 Q143615 Q4958923 Q1500360 Q3604134 Q10513227 Q3840157 Q1552451 Q847233 Q13728696 Q7024076 Q10884898 Q10884899 Q10884891 Q1266647 Q6142192 Q4346742 Q1565648 Q5633942 Q179246 Q5972684 Q1898494 Q3737315 Q2123826 Q2454760 Q15275627 Q10515187 Q449016 Q152179 Q5630820 Q4727706 Q82257 Q7867597
(c(Q2235308)|c(Q15324),P138,c(Q2235308))
action count
action less
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q2235308
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q15324
action count
action filter_multi_types
action find_reverse
entity Q512615
relation P138
type Q2235308
type Q15324
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q15324'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?k WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:Q2235308 ) ( ontology:Q15324 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2235308 ) ( ontology:Q15324 ) } } . ?o property:P138 resource:Q512615 } } . FILTER ( ?g < ?a ) }
HMS Shannon Discovery Japanese torpedo boat Tomozuru Japanese submarine I-15 Antarctic USS Nautilus HMS Näcken Russian submarine TK-208 Dmitri Donskoi SM U-151 USS Ohio Endurance USS Barracuda Italian submarine Ammiraglio Cagni USS George Washington Japanese submarine Ro-60 HMS Västergötland USS Sturgeon Japanese submarine I-201 Pisces V USS Seawolf HMS Odin French ship Astrolabe USS Los Angeles HMS Oberon Pietro Calvi submarine HMS Valiant HNLMS O 19 HNLMS Walrus HMS Rainbow Japanese submarine I-9 HMS Gotland ARA Salta (S-31) Russian submarine B-585 Saint Petersburg Japanese submarine I-12 SM U-27 USS James Madison SM U-93 SM U-20 Japanese submarine I-174 USS Benjamin Franklin USS Balao ORP Orzeł SM U-17 Japanese submarine I-400 HMS Adventure Victoria Greek submarine Katsonis USS Permit Finnish submarine Vetehinen Schooner Te Vega SM UB-43 HNLMS Dolfijn Yugoslav submarine Hrabri HNLMS K XI SM U-43 HMS Foxhound Japanese submarine I-7 R. H. Fauntleroy HMS Hecla HMCS Athabaskan HMS Parthian Japanese submarine I-52 Japanese submarine I-176 Granma HMS Express Japanese submarine I-373 HMS Grampus Japanese submarine I-153 Santa Maria Japanese submarine I-13 USS Lawrence Japanese submarine I-46 HMS Sjöormen HNLMS O 2 sloop HMS Alert INS Shishumar SS Vega HDMS Narhvalen USS Virginia HMS Astute KNM Ula HMS Discovery HMS Shannon USCGC Itasca HMS Sjölejonet Japanese submarine I-165 Japanese submarine I-162 Yugoslav submarine Osvetnik Japanese submarine I-156 Japanese submarine I-121 Italian submarine Console Generale Liuzzi Aigrette Chinese Hai Lung submarine HMS Draken DSRV-1 Mystic French ship Astrolabe Japanese submarine I-168 HMS Fury HMS Chatham USS Ethan Allen Japanese submarine I-1 Fortitude ferry Consul Japanese submarine I-372 French submarine Triomphant Émeraude Archimede Glauco JS Oyashio Japanese submarine HMS Challenger ARA Uruguay Brazilian submarine Tikuna Nautilus Italian submarine Acciaio HMS Hajen Luigi Settembrini submarine HMS Comet HMS Discovery HNLMS Zwaardvis Niantic Japanese submarine I-5 Japanese submarine I-6 Japanese submarine I-16 French submarine Dupuy de Lôme I-54 Japanese submarine USS Lafayette HMS Vanguard (S28) HMS R1 kayak INS Sindhughosh HMS Resolution Circé Italian submarine Brin Russian submarine Yury Dolgorukiy Ra HMS Södermanland DSV Alvin SM U-10 HMCS Huron Alkimos RRS Discovery USS Barracuda
144
action count
action less
action union
action find_reverse_tuple_counts
relation named after
type ship type
type ship type
action find_reverse_tuple_counts
relation named after
type ship type
type body of water
action count
action filter_multi_types
action find_reverse
entity HMS Erebus
relation named after
type ship type
type body of water
[[{'concept': 'ship type'}, {'concept': 'body of water'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?k WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:ship_type ) ( ontology:body_of_water ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ?p . VALUES ( ?p ) { ( ontology:ship_type ) ( ontology:body_of_water ) } } . ?o property:named_after resource:HMS_Erebus } } . FILTER ( ?g < ?a ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q486972 Q2235308
USER
How many human settlements serves as the ports of registry of atleast 1 ship type ?
(c(Q2235308),P532,c(Q486972))
action count
action atleast
action find_reverse_tuple_counts
relation P532
type Q486972
type Q2235308
value 1
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { FILTER ( ?v >= 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:P532 ?w . ?h rdf:type ontology:Q2235308 . ?w rdf:type ontology:Q486972 } GROUP BY ?w } }
action count
action atleast
action find_reverse_tuple_counts
relation port of registry
type human settlement
type ship type
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { FILTER ( ?v >= 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:port_of_registry ?w . ?h rdf:type ontology:ship_type . ?w rdf:type ontology:human_settlement } GROUP BY ?w } }
[]
human settlement ship type
SYSTEM
2
Q1055 Q24879
(c(Q2235308),P532,c(Q486972))
action count
action atleast
action find_reverse_tuple_counts
relation P532
type Q486972
type Q2235308
value 1
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { FILTER ( ?v >= 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:P532 ?w . ?h rdf:type ontology:Q2235308 . ?w rdf:type ontology:Q486972 } GROUP BY ?w } }
Hamburg Bremen
2
action count
action atleast
action find_reverse_tuple_counts
relation port of registry
type human settlement
type ship type
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { FILTER ( ?v >= 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:port_of_registry ?w . ?h rdf:type ontology:ship_type . ?w rdf:type ontology:human_settlement } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q123225 Q906871
P106
Q12737077
USER
Which occupations are the job of Imre Dlusztus and Albrecht von Haller ?
AND((Q906871,P106,c(Q12737077)), (Q123225,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q906871
relation P106
action find
entity Q123225
relation P106
type Q12737077
{'AND': [['Q906871', 'P106', {'concept': 'Q12737077'}], ['Q123225', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { resource:Q906871 property:P106 ?z . resource:Q123225 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Albrecht von Haller Imre Dlusztus
action filter_type
action intersection
action find
entity Imre Dlusztus
relation occupation
action find
entity Albrecht von Haller
relation occupation
type occupation
{'AND': [['Imre Dlusztus', 'occupation', {'concept': 'occupation'}], ['Albrecht von Haller', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { resource:Imre_Dlusztus property:occupation ?z . resource:Albrecht_von_Haller property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q49757 Q36180
SYSTEM
poet, writer
Q49757 Q36180
AND((Q906871,P106,c(Q12737077)), (Q123225,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q906871
relation P106
action find
entity Q123225
relation P106
type Q12737077
The [ANSWERS] are the job of Imre Dlusztus and Albrecht von Haller
{'AND': [['Q906871', 'P106', {'concept': 'Q12737077'}], ['Q123225', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { resource:Q906871 property:P106 ?z . resource:Q123225 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
poet writer
The poet and writer are the job of Imre Dlusztus and Albrecht von Haller
poet writer
action filter_type
action intersection
action find
entity Imre Dlusztus
relation occupation
action find
entity Albrecht von Haller
relation occupation
type occupation
{'AND': [['Imre Dlusztus', 'occupation', {'concept': 'occupation'}], ['Albrecht von Haller', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { resource:Imre_Dlusztus property:occupation ?z . resource:Albrecht_von_Haller property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36180 Q2085381
P106
Q502895
USER
How many people have writer and publisher as his/her means of employment ?
(c(Q502895),P106,Q36180) (c(Q502895),P106,Q2085381)
action count
action intersection
action filter_type
action find_reverse
entity Q36180
relation P106
type Q502895
action filter_type
action find_reverse
entity Q2085381
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q36180'] [{'concept': 'Q502895'}, 'P106', 'Q2085381']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:P106 resource:Q36180 . ?o rdf:type ontology:Q502895 . ?o property:P106 resource:Q2085381 . ?o rdf:type ontology:Q502895 }
writer publisher
action count
action intersection
action filter_type
action find_reverse
entity writer
relation occupation
type common name
action filter_type
action find_reverse
entity publisher
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'writer'] [{'concept': 'common name'}, 'occupation', 'publisher']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:occupation resource:writer . ?o rdf:type ontology:common_name . ?o property:occupation resource:publisher . ?o rdf:type ontology:common_name }
[]
common name
SYSTEM
10
Q19585314 Q20658256 Q7343203 Q18934836 Q873178 Q18576941 Q3182771 Q18529747 Q287665 Q18168092
(c(Q502895),P106,Q36180) (c(Q502895),P106,Q2085381)
action count
action intersection
action filter_type
action find_reverse
entity Q36180
relation P106
type Q502895
action filter_type
action find_reverse
entity Q2085381
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q36180'] [{'concept': 'Q502895'}, 'P106', 'Q2085381']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:P106 resource:Q36180 . ?o rdf:type ontology:Q502895 . ?o property:P106 resource:Q2085381 . ?o rdf:type ontology:Q502895 }
John Adamson David Llewellyn-Smith Robert Cromek A. D., de Vries Eduard Grégr Robert Benton Seeley John Wilson Bengough Ivo Frbežar Isabella Beeton Gladys Taylor
10
action count
action intersection
action filter_type
action find_reverse
entity writer
relation occupation
type common name
action filter_type
action find_reverse
entity publisher
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'writer'] [{'concept': 'common name'}, 'occupation', 'publisher']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:occupation resource:writer . ?o rdf:type ontology:common_name . ?o property:occupation resource:publisher . ?o rdf:type ontology:common_name }
[]