Simple Question (Direct)
Simple Question
Q1429414
P20
Q56061
USER
Where did the expiration of Hans Ulrich von Ruepprecht occur ?
(Q1429414,P20,c(Q56061))
action filter_type
action find
entity Q1429414
relation P20
type Q56061
['Q1429414', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1429414 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Hans Ulrich von Ruepprecht
action filter_type
action find
entity Hans Ulrich von Ruepprecht
relation place of death
type administrative territorial entity
['Hans Ulrich von Ruepprecht', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Hans_Ulrich_von_Ruepprecht property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1022
SYSTEM
Stuttgart
Q1022
(Q1429414,P20,c(Q56061))
action filter_type
action find
entity Q1429414
relation P20
type Q56061
The expiration of Hans Ulrich von Ruepprecht occurred in [ANSWER]
['Q1429414', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1429414 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Stuttgart
The expiration of Hans Ulrich von Ruepprecht occurred in Stuttgart
Stuttgart
action filter_type
action find
entity Hans Ulrich von Ruepprecht
relation place of death
type administrative territorial entity
['Hans Ulrich von Ruepprecht', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Hans_Ulrich_von_Ruepprecht property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1022
P276
Q618123
USER
What is situated at that administrative territory ?
(c(Q618123),P276,Q1022)
action filter_type
action find_reverse
entity Q1022
relation P276
type Q618123
[{'concept': 'Q618123'}, 'P276', 'Q1022']
SELECT DISTINCT ?j WHERE { ?j property:P276 resource:Q1022 . ?j rdf:type ontology:Q618123 }
Stuttgart
action filter_type
action find_reverse
entity Stuttgart
relation location
type geographical object
[{'concept': 'geographical object'}, 'location', 'Stuttgart']
SELECT DISTINCT ?j WHERE { ?j property:location resource:Stuttgart . ?j rdf:type ontology:geographical_object }
[]
geographical object
Q1490097
SYSTEM
HTC Stuttgarter Kickers
Q1490097
(c(Q618123),P276,Q1022)
action filter_type
action find_reverse
entity Q1022
relation P276
type Q618123
[ANSWER] is situated at that administrative territory
[{'concept': 'Q618123'}, 'P276', 'Q1022']
SELECT DISTINCT ?j WHERE { ?j property:P276 resource:Q1022 . ?j rdf:type ontology:Q618123 }
HTC Stuttgarter Kickers
HTC Stuttgarter Kickers is situated at that administrative territory
HTC Stuttgarter Kickers
action filter_type
action find_reverse
entity Stuttgart
relation location
type geographical object
[{'concept': 'geographical object'}, 'location', 'Stuttgart']
SELECT DISTINCT ?j WHERE { ?j property:location resource:Stuttgart . ?j rdf:type ontology:geographical_object }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1022
P1376
Q1048835
USER
Which political territory has that administrative territory has its first city ?
(Q1490097,P1376,c(Q1048835))
action filter_type
action find
entity Q1022
relation P1376
type Q1048835
['Q1490097', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q1022 property:P1376 ?o . ?o rdf:type ontology:Q1048835 }
Stuttgart
action filter_type
action find
entity Stuttgart
relation capital of
type political territorial entity
['HTC Stuttgarter Kickers', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Stuttgart property:capital_of ?o . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q8172
SYSTEM
Stuttgart Government Region
Q8172
(Q1490097,P1376,c(Q1048835))
action filter_type
action find
entity Q1022
relation P1376
type Q1048835
The [ANSWER] has that administrative territory has its first city
['Q1490097', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q1022 property:P1376 ?o . ?o rdf:type ontology:Q1048835 }
Stuttgart Government Region
The Stuttgart Government Region has that administrative territory has its first city
Stuttgart Government Region
action filter_type
action find
entity Stuttgart
relation capital of
type political territorial entity
['HTC Stuttgarter Kickers', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Stuttgart property:capital_of ?o . ?o rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q1048835 Q8072 Q15617994
USER
How many political territories are lesser number of volcanoes and administrative territories a component of than that political territory ?
(c(Q8072)|c(Q15617994),P361,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P361
type Q1048835
type Q8072
action find_reverse_tuple_counts
relation P361
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q8172
relation P361
type Q8072
type Q15617994
[[{'concept': 'Q8072'}, {'concept': 'Q15617994'}], 'P361', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) ?s WHERE { VALUES ( ?o ) { ( ontology:Q8072 ) ( ontology:Q15617994 ) } . ?l rdf:type ?o } GROUP BY ?s } . FILTER ( ?a < ?i ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:P361 resource:Q8172 . { { ?u rdf:type ontology:Q15617994 } UNION { ?u rdf:type ontology:Q8072 } } } } }
action count
action less
action union
action find_reverse_tuple_counts
relation part of
type political territorial entity
type volcano
action find_reverse_tuple_counts
relation part of
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Stuttgart Government Region
relation part of
type volcano
type designation for an administrative territorial entity
[[{'concept': 'volcano'}, {'concept': 'designation for an administrative territorial entity'}], 'part of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) ?s WHERE { VALUES ( ?o ) { ( ontology:volcano ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?l rdf:type ?o } GROUP BY ?s } . FILTER ( ?a < ?i ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:part_of resource:Stuttgart_Government_Region . { { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?u rdf:type ontology:volcano } } } } }
[]
political territorial entity volcano designation for an administrative territorial entity
SYSTEM
0
(c(Q8072)|c(Q15617994),P361,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P361
type Q1048835
type Q8072
action find_reverse_tuple_counts
relation P361
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q8172
relation P361
type Q8072
type Q15617994
[ANSWER]
[[{'concept': 'Q8072'}, {'concept': 'Q15617994'}], 'P361', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) ?s WHERE { VALUES ( ?o ) { ( ontology:Q8072 ) ( ontology:Q15617994 ) } . ?l rdf:type ?o } GROUP BY ?s } . FILTER ( ?a < ?i ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:P361 resource:Q8172 . { { ?u rdf:type ontology:Q15617994 } UNION { ?u rdf:type ontology:Q8072 } } } } }
0
action count
action less
action union
action find_reverse_tuple_counts
relation part of
type political territorial entity
type volcano
action find_reverse_tuple_counts
relation part of
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Stuttgart Government Region
relation part of
type volcano
type designation for an administrative territorial entity
[[{'concept': 'volcano'}, {'concept': 'designation for an administrative territorial entity'}], 'part of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) ?s WHERE { VALUES ( ?o ) { ( ontology:volcano ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?l rdf:type ?o } GROUP BY ?s } . FILTER ( ?a < ?i ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:part_of resource:Stuttgart_Government_Region . { { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?u rdf:type ontology:volcano } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q8172
P17
Q1048835
USER
How many political territories are Stuttgart Government Region present in ?
(Q8172,P17,c(Q1048835))
action count
action filter_type
action find
entity Q8172
relation P17
type Q1048835
['Q8172', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Q8172 property:P17 ?e . ?e rdf:type ontology:Q1048835 }
Stuttgart Government Region
action count
action filter_type
action find
entity Stuttgart Government Region
relation country
type political territorial entity
['Stuttgart Government Region', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Stuttgart_Government_Region property:country ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q183
(Q8172,P17,c(Q1048835))
action count
action filter_type
action find
entity Q8172
relation P17
type Q1048835
[ANSWER]
['Q8172', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Q8172 property:P17 ?e . ?e rdf:type ontology:Q1048835 }
Germany
1
action count
action filter_type
action find
entity Stuttgart Government Region
relation country
type political territorial entity
['Stuttgart Government Region', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Stuttgart_Government_Region property:country ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q543907
Q1048835
USER
And also tell me about Berlin Yorckstraße station?
(Q543907,P17,c(Q1048835))
action count
action filter_type
action find
entity Q543907
relation P17
type Q1048835
['Q543907', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:Q543907 property:P17 ?n . ?n rdf:type ontology:Q1048835 }
Berlin Yorckstraße station
action count
action filter_type
action find
entity Berlin Yorckstraße station
relation country
type political territorial entity
['Berlin Yorckstraße station', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:Berlin_Yorckstraße_station property:country ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
(Q543907,P17,c(Q1048835))
action count
action filter_type
action find
entity Q543907
relation P17
type Q1048835
[ANSWER]
['Q543907', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:Q543907 property:P17 ?n . ?n rdf:type ontology:Q1048835 }
1
action count
action filter_type
action find
entity Berlin Yorckstraße station
relation country
type political territorial entity
['Berlin Yorckstraße station', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:Berlin_Yorckstraße_station property:country ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with around 3 political territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?n ) WHERE { ?h property:P530 ?b . ?h rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?n = 3 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?n ) WHERE { ?h property:diplomatic_relation ?b . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?n = 3 ) }
[]
designation for an administrative territorial entity political territorial entity
Q30 Q159 Q142
SYSTEM
United States of America, Russia, France
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[ANSWERS] have diplomatic relationships with around 3 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?n ) WHERE { ?h property:P530 ?b . ?h rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?n = 3 ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
United States of America, Russia and France have diplomatic relationships with around 3 political territories
United States of America Russia France
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?n ) WHERE { ?h property:diplomatic_relation ?b . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?n = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P137
Q1269299
USER
Which business organization can be described as service operator of Russia ?
(c(Q1269299),P137,Q159)
action filter_type
action find_reverse
entity Q159
relation P137
type Q1269299
[{'concept': 'Q1269299'}, 'P137', 'Q159']
SELECT DISTINCT ?l WHERE { ?l property:P137 resource:Q159 . ?l rdf:type ontology:Q1269299 }
Russia
action filter_type
action find_reverse
entity Russia
relation operator
type type of business entity
[{'concept': 'type of business entity'}, 'operator', 'Russia']
SELECT DISTINCT ?l WHERE { ?l property:operator resource:Russia . ?l rdf:type ontology:type_of_business_entity }
[]
type of business entity
Q2537294
SYSTEM
All-Russia State Television and Radio Broadcasting Company
Q2537294
(c(Q1269299),P137,Q159)
action filter_type
action find_reverse
entity Q159
relation P137
type Q1269299
[ANSWER] can be described as service operator of Russia
[{'concept': 'Q1269299'}, 'P137', 'Q159']
SELECT DISTINCT ?l WHERE { ?l property:P137 resource:Q159 . ?l rdf:type ontology:Q1269299 }
All-Russia State Television and Radio Broadcasting Company
All-Russia State Television and Radio Broadcasting Company can be described as service operator of Russia
All-Russia State Television and Radio Broadcasting Company
action filter_type
action find_reverse
entity Russia
relation operator
type type of business entity
[{'concept': 'type of business entity'}, 'operator', 'Russia']
SELECT DISTINCT ?l WHERE { ?l property:operator resource:Russia . ?l rdf:type ontology:type_of_business_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2537294
P159
Q56061
USER
Which administrative territory is the head office of that business organization ?
(Q2537294,P159,c(Q56061))
action filter_type
action find
entity Q2537294
relation P159
type Q56061
['Q2537294', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q2537294 property:P159 ?a . ?a rdf:type ontology:Q56061 }
All-Russia State Television and Radio Broadcasting Company
action filter_type
action find
entity All-Russia State Television and Radio Broadcasting Company
relation headquarters location
type administrative territorial entity
['All-Russia State Television and Radio Broadcasting Company', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:All-Russia_State_Television_and_Radio_Broadcasting_Company property:headquarters_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q2537294,P159,c(Q56061))
action filter_type
action find
entity Q2537294
relation P159
type Q56061
[ANSWER] is the head office of that business organization
['Q2537294', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q2537294 property:P159 ?a . ?a rdf:type ontology:Q56061 }
Moscow
Moscow is the head office of that business organization
Moscow
action filter_type
action find
entity All-Russia State Television and Radio Broadcasting Company
relation headquarters location
type administrative territorial entity
['All-Russia State Television and Radio Broadcasting Company', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:All-Russia_State_Television_and_Radio_Broadcasting_Company property:headquarters_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2396277 Q1429414
P19 P20
Q56061
USER
Which administrative territories are the birthplace of Hans Ulrich von Ruepprecht or did the demise of Tatu Kolehmainen occur ?
OR((Q1429414,P19,c(Q56061)), (Q2396277,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1429414
relation P19
action find
entity Q2396277
relation P20
type Q56061
{'OR': [['Q1429414', 'P19', {'concept': 'Q56061'}], ['Q2396277', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q2396277 property:P20 ?j } UNION { resource:Q1429414 property:P19 ?j } } . ?j rdf:type ontology:Q56061 }
Tatu Kolehmainen Hans Ulrich von Ruepprecht
action filter_type
action union
action find
entity Hans Ulrich von Ruepprecht
relation place of birth
action find
entity Tatu Kolehmainen
relation place of death
type administrative territorial entity
{'OR': [['Hans Ulrich von Ruepprecht', 'place of birth', {'concept': 'administrative territorial entity'}], ['Tatu Kolehmainen', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Tatu_Kolehmainen property:place_of_death ?j } UNION { resource:Hans_Ulrich_von_Ruepprecht property:place_of_birth ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1757 Q1022
SYSTEM
Helsinki, Stuttgart
Q1757 Q1022
OR((Q1429414,P19,c(Q56061)), (Q2396277,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1429414
relation P19
action find
entity Q2396277
relation P20
type Q56061
[ANSWERS] are the birthplace of Hans Ulrich von Ruepprecht or did the demise of Tatu Kolehmainen occur
{'OR': [['Q1429414', 'P19', {'concept': 'Q56061'}], ['Q2396277', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q2396277 property:P20 ?j } UNION { resource:Q1429414 property:P19 ?j } } . ?j rdf:type ontology:Q56061 }
Helsinki Stuttgart
Helsinki and Stuttgart are the birthplace of Hans Ulrich von Ruepprecht or did the demise of Tatu Kolehmainen occur
Helsinki Stuttgart
action filter_type
action union
action find
entity Hans Ulrich von Ruepprecht
relation place of birth
action find
entity Tatu Kolehmainen
relation place of death
type administrative territorial entity
{'OR': [['Hans Ulrich von Ruepprecht', 'place of birth', {'concept': 'administrative territorial entity'}], ['Tatu Kolehmainen', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Tatu_Kolehmainen property:place_of_death ?j } UNION { resource:Hans_Ulrich_von_Ruepprecht property:place_of_birth ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24027218
P532
Q56061 Q2235308
USER
Which ship types have greater number of administrative territories as registry port than Elizabeth Jane ?
(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 Q24027218
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Q24027218 property:P532 ?d . ?d rdf:type ontology:Q2235308 } } . FILTER ( ?f > ?o ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?f ) WHERE { ?a property:P532 ?b . ?a rdf:type ontology:Q2235308 . ?b rdf:type ontology:Q56061 } GROUP BY ?a } }
Elizabeth Jane
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 Elizabeth Jane
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Elizabeth_Jane property:port_of_registry ?d . ?d rdf:type ontology:ship_type } } . FILTER ( ?f > ?o ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?f ) WHERE { ?a property:port_of_registry ?b . ?a rdf:type ontology:ship_type . ?b rdf:type ontology:administrative_territorial_entity } GROUP BY ?a } }
[]
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 Q24027218
relation P532
type Q2235308
[ANSWERS] have greater number of administrative territories as registry port than Elizabeth Jane
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Q24027218 property:P532 ?d . ?d rdf:type ontology:Q2235308 } } . FILTER ( ?f > ?o ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?f ) WHERE { ?a property:P532 ?b . ?a rdf:type ontology:Q2235308 . ?b rdf:type ontology:Q56061 } GROUP BY ?a } }
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 registry port than Elizabeth Jane
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 Elizabeth Jane
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Elizabeth_Jane property:port_of_registry ?d . ?d rdf:type ontology:ship_type } } . FILTER ( ?f > ?o ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?f ) WHERE { ?a property:port_of_registry ?b . ?a rdf:type ontology:ship_type . ?b rdf:type ontology:administrative_territorial_entity } GROUP BY ?a } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24027396
P532
Q56061 Q2235308
USER
And also tell me about 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 Q24027396
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?d ) WHERE { ?y property:P532 ?w . ?w rdf:type ontology:Q56061 . ?y rdf:type ontology:Q2235308 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ontology:Q2235308 . resource:Q24027396 property:P532 ?r } } . FILTER ( ?d > ?i ) }
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 Catherine
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?d ) WHERE { ?y property:port_of_registry ?w . ?w rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:ship_type } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ontology:ship_type . resource:Catherine property:port_of_registry ?r } } . FILTER ( ?d > ?i ) }
[]
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 Q24027396
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?d ) WHERE { ?y property:P532 ?w . ?w rdf:type ontology:Q56061 . ?y rdf:type ontology:Q2235308 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ontology:Q2235308 . resource:Q24027396 property:P532 ?r } } . FILTER ( ?d > ?i ) }
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 Catherine
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?d ) WHERE { ?y property:port_of_registry ?w . ?w rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:ship_type } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ontology:ship_type . resource:Catherine property:port_of_registry ?r } } . FILTER ( ?d > ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3544577
P138
Q2235308 Q17444909 Q5962346
USER
How many ship types are greater number of astronomical object types or classification schemes named after than USS Truxtun ?
(c(Q17444909)|c(Q5962346),P138,c(Q2235308))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q17444909
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q5962346
action count
action filter_multi_types
action find_reverse
entity Q3544577
relation P138
type Q17444909
type Q5962346
[[{'concept': 'Q17444909'}, {'concept': 'Q5962346'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?r ) { ( ontology:Q17444909 ) ( ontology:Q5962346 ) } . ?s rdf:type ?r } GROUP BY ?d } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:P138 resource:Q3544577 . { { ?z rdf:type ontology:Q17444909 } UNION { ?z rdf:type ontology:Q5962346 } } } } }
USS Truxtun
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type ship type
type astronomical object type
action find_reverse_tuple_counts
relation named after
type ship type
type classification scheme
action count
action filter_multi_types
action find_reverse
entity USS Truxtun
relation named after
type astronomical object type
type classification scheme
[[{'concept': 'astronomical object type'}, {'concept': 'classification scheme'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?r ) { ( ontology:astronomical_object_type ) ( ontology:classification_scheme ) } . ?s rdf:type ?r } GROUP BY ?d } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:named_after resource:USS_Truxtun . { { ?z rdf:type ontology:astronomical_object_type } UNION { ?z rdf:type ontology:classification_scheme } } } } }
[]
ship type astronomical object type classification scheme
SYSTEM
106
Q2259226 Q827360 Q4993491 Q7391557 Q1422739 Q1047321 Q3614442 Q2301794 Q11416678 Q10515261 Q5971123 Q6141010 Q7198244 Q1971215 Q900379 Q5633568 Q2166261 Q4351305 Q3903735 Q1565629 Q32770 Q32771 Q5633971 Q6159079 Q5636029 Q2837649 Q2038001 Q16846235 Q820478 Q7870497 Q7391608 Q7391565 Q2709917 Q6141293 Q1479687 Q912950 Q2207272 Q10862679 Q3563939 Q496778 Q557286 Q4109990 Q7391649 Q2269717 Q16223597 Q2301492 Q820669 Q4571916 Q5633694 Q4346186 Q10884878 Q10862664 Q5632611 Q10862685 Q4386720 Q10884907 Q5634350 Q2208180 Q5972671 Q5629241 Q678015 Q1236027 Q11868642 Q13376303 Q10884889 Q10884888 Q3750543 Q10884884 Q9385256 Q3687436 Q15104547 Q11151506 Q10513165 Q5206186 Q2342404 Q1474340 Q2704642 Q19169440 Q10862600 Q2717194 Q15117029 Q3621539 Q3771903 Q11262560 Q4958923 Q1500360 Q3604134 Q10513227 Q3840157 Q13728696 Q10884898 Q10884899 Q10884891 Q1266647 Q6142192 Q4346742 Q1565648 Q5633942 Q5972684 Q3737315 Q2123826 Q2454760 Q10515187 Q449016 Q152179 Q7867597
(c(Q17444909)|c(Q5962346),P138,c(Q2235308))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q17444909
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q5962346
action count
action filter_multi_types
action find_reverse
entity Q3544577
relation P138
type Q17444909
type Q5962346
[ANSWER]
[[{'concept': 'Q17444909'}, {'concept': 'Q5962346'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?r ) { ( ontology:Q17444909 ) ( ontology:Q5962346 ) } . ?s rdf:type ?r } GROUP BY ?d } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:P138 resource:Q3544577 . { { ?z rdf:type ontology:Q17444909 } UNION { ?z rdf:type ontology:Q5962346 } } } } }
Japanese submarine I-15 USS Nautilus HMS Näcken SM U-151 USS Ohio 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 Bounty HMS Odin 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 Greek submarine Katsonis USS Permit Gorch Fock I Finnish submarine Vetehinen SM UB-43 HNLMS Dolfijn Yugoslav submarine Hrabri HNLMS K XI SM U-43 Japanese submarine I-7 HMS Parthian Japanese submarine I-52 Japanese submarine I-176 Japanese submarine I-373 HMS Grampus Japanese submarine I-153 Japanese submarine I-13 Japanese submarine I-46 HMS Sjöormen HNLMS O 2 INS Shishumar HDMS Narhvalen USS Virginia HMS Astute KNM Ula 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 Japanese submarine I-168 USS Ethan Allen Japanese submarine I-1 Consul Japanese submarine I-372 French submarine Triomphant Émeraude Archimede Glauco JS Oyashio Japanese submarine Brazilian submarine Tikuna Nautilus Italian submarine Acciaio HMS Hajen Luigi Settembrini submarine HNLMS Zwaardvis 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 INS Sindhughosh Circé Italian submarine Brin Russian submarine Yury Dolgorukiy HMS Södermanland DSV Alvin SM U-10 USS Barracuda
106
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type ship type
type astronomical object type
action find_reverse_tuple_counts
relation named after
type ship type
type classification scheme
action count
action filter_multi_types
action find_reverse
entity USS Truxtun
relation named after
type astronomical object type
type classification scheme
[[{'concept': 'astronomical object type'}, {'concept': 'classification scheme'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?a ) WHERE { VALUES ( ?r ) { ( ontology:astronomical_object_type ) ( ontology:classification_scheme ) } . ?s rdf:type ?r } GROUP BY ?d } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { ?z property:named_after resource:USS_Truxtun . { { ?z rdf:type ontology:astronomical_object_type } UNION { ?z rdf:type ontology:classification_scheme } } } } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1218 Q1757
P190
Q56061
USER
Which administrative territories are partner towns of Helsinki and Jerusalem ?
AND((Q1757,P190,c(Q56061)), (Q1218,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q1757
relation P190
action find
entity Q1218
relation P190
type Q56061
{'AND': [['Q1757', 'P190', {'concept': 'Q56061'}], ['Q1218', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q1757 property:P190 ?e . resource:Q1218 property:P190 ?e }
Jerusalem Helsinki
action filter_type
action intersection
action find
entity Helsinki
relation sister city
action find
entity Jerusalem
relation sister city
type administrative territorial entity
{'AND': [['Helsinki', 'sister city', {'concept': 'administrative territorial entity'}], ['Jerusalem', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Helsinki property:sister_city ?e . resource:Jerusalem property:sister_city ?e }
[]
administrative territorial entity
Q1085
SYSTEM
Prague
Q1085
AND((Q1757,P190,c(Q56061)), (Q1218,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q1757
relation P190
action find
entity Q1218
relation P190
type Q56061
[ANSWER] is partner towns of Helsinki and Jerusalem
{'AND': [['Q1757', 'P190', {'concept': 'Q56061'}], ['Q1218', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q1757 property:P190 ?e . resource:Q1218 property:P190 ?e }
Prague
Prague is partner towns of Helsinki and Jerusalem
Prague
action filter_type
action intersection
action find
entity Helsinki
relation sister city
action find
entity Jerusalem
relation sister city
type administrative territorial entity
{'AND': [['Helsinki', 'sister city', {'concept': 'administrative territorial entity'}], ['Jerusalem', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Helsinki property:sister_city ?e . resource:Jerusalem property:sister_city ?e }
[]