Simple Question (Direct)
Simple Question
Q11230126
P69
Q163740
USER
Which nonprofit organization is the alma mater of Pedro Zulen ?
(Q11230126,P69,c(Q163740))
action filter_type
action find
entity Q11230126
relation P69
type Q163740
['Q11230126', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?j WHERE { resource:Q11230126 property:P69 ?j . ?j rdf:type ontology:Q163740 }
Pedro Zulen
action filter_type
action find
entity Pedro Zulen
relation educated at
type nonprofit organization
['Pedro Zulen', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?j WHERE { resource:Pedro_Zulen property:educated_at ?j . ?j rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
(Q11230126,P69,c(Q163740))
action filter_type
action find
entity Q11230126
relation P69
type Q163740
Of [ANSWER] is the alma mater of Pedro Zulen
['Q11230126', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?j WHERE { resource:Q11230126 property:P69 ?j . ?j rdf:type ontology:Q163740 }
Harvard University
Of Harvard University is the alma mater of Pedro Zulen
Harvard University
action filter_type
action find
entity Pedro Zulen
relation educated at
type nonprofit organization
['Pedro Zulen', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?j WHERE { resource:Pedro_Zulen property:educated_at ?j . ?j rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11230126
P20
Q56061
USER
Where did Pedro Zulen die ?
(Q11230126,P20,c(Q56061))
action filter_type
action find
entity Q11230126
relation P20
type Q56061
['Q11230126', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q11230126 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Pedro Zulen
action filter_type
action find
entity Pedro Zulen
relation place of death
type administrative territorial entity
['Pedro Zulen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Pedro_Zulen property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2868
SYSTEM
Lima
Q2868
(Q11230126,P20,c(Q56061))
action filter_type
action find
entity Q11230126
relation P20
type Q56061
Pedro Zulen died in [ANSWER]
['Q11230126', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q11230126 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Lima
Pedro Zulen died in Lima
Lima
action filter_type
action find
entity Pedro Zulen
relation place of death
type administrative territorial entity
['Pedro Zulen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Pedro_Zulen property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2868 Q37320
P190
Q56061
USER
Is Cleveland twin city of that one ?
(Q2868,P190,Q37320)
action is_in
entity Q37320
action find
entity Q2868
relation P190
['Q2868', 'P190', 'Q37320']
ASK WHERE { resource:Q2868 property:P190 resource:Q37320 }
Lima Cleveland
action is_in
entity Cleveland
action find
entity Lima
relation sister city
['Lima', 'sister city', 'Cleveland']
ASK WHERE { resource:Lima property:sister_city resource:Cleveland }
[]
administrative territorial entity
SYSTEM
YES
(Q2868,P190,Q37320)
action is_in
entity Q37320
action find
entity Q2868
relation P190
[ANSWER]
['Q2868', 'P190', 'Q37320']
ASK WHERE { resource:Q2868 property:P190 resource:Q37320 }
Yes
action is_in
entity Cleveland
action find
entity Lima
relation sister city
['Lima', 'sister city', 'Cleveland']
ASK WHERE { resource:Lima property:sister_city resource:Cleveland }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q11230126 Q2868
P19
Q56061
USER
Was Pedro Zulen born at Lima ?
(Q11230126,P19,Q2868)
action is_in
entity Q2868
action find
entity Q11230126
relation P19
['Q11230126', 'P19', 'Q2868']
ASK WHERE { resource:Q11230126 property:P19 resource:Q2868 }
Pedro Zulen Lima
action is_in
entity Lima
action find
entity Pedro Zulen
relation place of birth
['Pedro Zulen', 'place of birth', 'Lima']
ASK WHERE { resource:Pedro_Zulen property:place_of_birth resource:Lima }
[]
administrative territorial entity
SYSTEM
YES
(Q11230126,P19,Q2868)
action is_in
entity Q2868
action find
entity Q11230126
relation P19
[ANSWER]
['Q11230126', 'P19', 'Q2868']
ASK WHERE { resource:Q11230126 property:P19 resource:Q2868 }
Yes
action is_in
entity Lima
action find
entity Pedro Zulen
relation place of birth
['Pedro Zulen', 'place of birth', 'Lima']
ASK WHERE { resource:Pedro_Zulen property:place_of_birth resource:Lima }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2868 Q3070 Q174
P190
Q56061
USER
Is Lima partner town of San José and São Paulo ?
(Q2868,P190,Q3070) (Q2868,P190,Q174)
action is_in
entity Q2868
action intersection
action find_reverse
entity Q3070
relation P190
action find_reverse
entity Q174
relation P190
['Q2868', 'P190', 'Q3070'] ['Q2868', 'P190', 'Q174']
ASK WHERE { resource:Q2868 property:P190 resource:Q3070 . resource:Q2868 property:P190 resource:Q174 }
Lima San José São Paulo
action is_in
entity Lima
action intersection
action find_reverse
entity San José
relation sister city
action find_reverse
entity São Paulo
relation sister city
['Lima', 'sister city', 'San José'] ['Lima', 'sister city', 'São Paulo']
ASK WHERE { resource:Lima property:sister_city resource:San_José . resource:Lima property:sister_city resource:São_Paulo }
[]
administrative territorial entity
SYSTEM
YES
(Q2868,P190,Q3070) (Q2868,P190,Q174)
action is_in
entity Q2868
action intersection
action find_reverse
entity Q3070
relation P190
action find_reverse
entity Q174
relation P190
[ANSWER]
['Q2868', 'P190', 'Q3070'] ['Q2868', 'P190', 'Q174']
ASK WHERE { resource:Q2868 property:P190 resource:Q3070 . resource:Q2868 property:P190 resource:Q174 }
Yes
action is_in
entity Lima
action intersection
action find_reverse
entity San José
relation sister city
action find_reverse
entity São Paulo
relation sister city
['Lima', 'sister city', 'San José'] ['Lima', 'sister city', 'São Paulo']
ASK WHERE { resource:Lima property:sister_city resource:San_José . resource:Lima property:sister_city resource:São_Paulo }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1792 Q174
P190
Q56061
USER
Which administrative territories are twin towns of São Paulo and Gdańsk ?
AND((Q174,P190,c(Q56061)), (Q1792,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q174
relation P190
action find
entity Q1792
relation P190
type Q56061
{'AND': [['Q174', 'P190', {'concept': 'Q56061'}], ['Q1792', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { resource:Q174 property:P190 ?f . resource:Q1792 property:P190 ?f . ?f rdf:type ontology:Q56061 }
Gdańsk São Paulo
action filter_type
action intersection
action find
entity São Paulo
relation sister city
action find
entity Gdańsk
relation sister city
type administrative territorial entity
{'AND': [['São Paulo', 'sister city', {'concept': 'administrative territorial entity'}], ['Gdańsk', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { resource:São_Paulo property:sister_city ?f . resource:Gdańsk property:sister_city ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492 Q8686
SYSTEM
Barcelona, Shanghai
Q1492 Q8686
AND((Q174,P190,c(Q56061)), (Q1792,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q174
relation P190
action find
entity Q1792
relation P190
type Q56061
[ANSWERS] are twin towns of São Paulo and Gdańsk
{'AND': [['Q174', 'P190', {'concept': 'Q56061'}], ['Q1792', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { resource:Q174 property:P190 ?f . resource:Q1792 property:P190 ?f . ?f rdf:type ontology:Q56061 }
Barcelona Shanghai
Barcelona and Shanghai are twin towns of São Paulo and Gdańsk
Barcelona Shanghai
action filter_type
action intersection
action find
entity São Paulo
relation sister city
action find
entity Gdańsk
relation sister city
type administrative territorial entity
{'AND': [['São Paulo', 'sister city', {'concept': 'administrative territorial entity'}], ['Gdańsk', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { resource:São_Paulo property:sister_city ?f . resource:Gdańsk property:sister_city ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1492
P47
Q486972 Q1048835
USER
How many human settlements or political territories are bordered by Barcelona ?
(Q1492,P47,c(Q486972)) (Q1492,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1492
relation P47
type Q486972
action filter_type
action find
entity Q1492
relation P47
type Q1048835
['Q1492', 'P47', {'concept': 'Q486972'}] ['Q1492', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { resource:Q1492 property:P47 ?q . ?q rdf:type ontology:Q486972 } UNION { ?q rdf:type ontology:Q1048835 . resource:Q1492 property:P47 ?q } }
Barcelona
action count
action union
action filter_type
action find
entity Barcelona
relation shares border with
type human settlement
action filter_type
action find
entity Barcelona
relation shares border with
type political territorial entity
['Barcelona', 'shares border with', {'concept': 'human settlement'}] ['Barcelona', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { resource:Barcelona property:shares_border_with ?q . ?q rdf:type ontology:human_settlement } UNION { ?q rdf:type ontology:political_territorial_entity . resource:Barcelona property:shares_border_with ?q } }
[]
human settlement political territorial entity
SYSTEM
11
Q15639 Q15470 Q15471 Q15621 Q15619 Q15624 Q13927 Q13936 Q13922 Q15641 Q15473
(Q1492,P47,c(Q486972)) (Q1492,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1492
relation P47
type Q486972
action filter_type
action find
entity Q1492
relation P47
type Q1048835
[ANSWER]
['Q1492', 'P47', {'concept': 'Q486972'}] ['Q1492', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { resource:Q1492 property:P47 ?q . ?q rdf:type ontology:Q486972 } UNION { ?q rdf:type ontology:Q1048835 . resource:Q1492 property:P47 ?q } }
Sant Feliu de Llobregat L'Hospitalet de Llobregat Sant Adrià de Besòs Esplugues de Llobregat El Prat de Llobregat Molins de Rei Montcada i Reixac Sant Cugat del Vallès Cerdanyola del Vallès Sant Just Desvern Santa Coloma de Gramenet
11
action count
action union
action filter_type
action find
entity Barcelona
relation shares border with
type human settlement
action filter_type
action find
entity Barcelona
relation shares border with
type political territorial entity
['Barcelona', 'shares border with', {'concept': 'human settlement'}] ['Barcelona', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { resource:Barcelona property:shares_border_with ?q . ?q rdf:type ontology:human_settlement } UNION { ?q rdf:type ontology:political_territorial_entity . resource:Barcelona property:shares_border_with ?q } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q4686475
P532
Q56061 Q2235308
USER
Which ship types are the registry port of approximately the same number of administrative territories as Adventure ?
(c(Q2235308),P532,c(Q56061))
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q4686475
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m rdf:type ontology:Q2235308 . resource:Q4686475 property:P532 ?m } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?l ) WHERE { ?d rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q56061 . ?d property:P532 ?x } GROUP BY ?d } }
Adventure
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Adventure
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m rdf:type ontology:ship_type . resource:Adventure property:port_of_registry ?m } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?l ) WHERE { ?d rdf:type ontology:ship_type . ?x rdf:type ontology:administrative_territorial_entity . ?d property:port_of_registry ?x } GROUP BY ?d } }
[]
administrative territorial entity ship type
Q35462 Q192381 Q983141
SYSTEM
RMS Aquitania, MS Oasis of the Seas, MY Sam Simon
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q1026780 Q22342351 Q15662618 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q4686475
relation P532
type Q2235308
[ANSWERS] are the registry port of approximately the same number of administrative territories as Adventure
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m rdf:type ontology:Q2235308 . resource:Q4686475 property:P532 ?m } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?l ) WHERE { ?d rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q56061 . ?d property:P532 ?x } GROUP BY ?d } }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation SS California Modern Express Djurgården 8 Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
RMS Aquitania, MS Oasis of the Seas and MY Sam Simon are the registry port of approximately the same number of administrative territories as Adventure
RMS Aquitania MS Oasis of the Seas MY Sam Simon
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Adventure
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m rdf:type ontology:ship_type . resource:Adventure property:port_of_registry ?m } } . FILTER ( ?l = ?c ) . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?l ) WHERE { ?d rdf:type ontology:ship_type . ?x rdf:type ontology:administrative_territorial_entity . ?d property:port_of_registry ?x } GROUP BY ?d } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q35462 Q192381 Q983141
P532
Q56061
USER
What serves as the ports of registry of those ship types ?
(Q35462,P532,c(Q56061)) (Q192381,P532,c(Q56061)) (Q983141,P532,c(Q56061))
action filter_type
action find
entity prev_answer
relation P532
type Q56061
['Q35462', 'P532', {'concept': 'Q56061'}] ['Q192381', 'P532', {'concept': 'Q56061'}] ['Q983141', 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?r property:P532 ?z . ?z rdf:type ontology:Q56061 . VALUES ( ?r ) { ( resource:Q2992316 ) ( resource:Q2301456 ) ( resource:Q983141 ) } }
RMS Aquitania MS Oasis of the Seas MY Sam Simon
action filter_type
action find
entity prev_answer
relation port of registry
type administrative territorial entity
['RMS Aquitania', 'port of registry', {'concept': 'administrative territorial entity'}] ['MS Oasis of the Seas', 'port of registry', {'concept': 'administrative territorial entity'}] ['MY Sam Simon', 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?r property:port_of_registry ?z . ?z rdf:type ontology:administrative_territorial_entity . VALUES ( ?r ) { ( resource:HSC_Condor_Rapide ) ( resource:MS_Viking_XPRS ) ( resource:MY_Sam_Simon ) } }
[]
administrative territorial entity
Q24826 Q2467 Q3141
SYSTEM
Liverpool, Nassau, Melbourne
Q24826 Q2467 Q3141
(Q35462,P532,c(Q56061)) (Q192381,P532,c(Q56061)) (Q983141,P532,c(Q56061))
action filter_type
action find
entity prev_answer
relation P532
type Q56061
[ANSWERS] serve as the ports of registry of those ship types
['Q35462', 'P532', {'concept': 'Q56061'}] ['Q192381', 'P532', {'concept': 'Q56061'}] ['Q983141', 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?r property:P532 ?z . ?z rdf:type ontology:Q56061 . VALUES ( ?r ) { ( resource:Q2992316 ) ( resource:Q2301456 ) ( resource:Q983141 ) } }
Liverpool Nassau Melbourne
Liverpool, Nassau and Melbourne serve as the ports of registry of those ship types
Liverpool Nassau Melbourne
action filter_type
action find
entity prev_answer
relation port of registry
type administrative territorial entity
['RMS Aquitania', 'port of registry', {'concept': 'administrative territorial entity'}] ['MS Oasis of the Seas', 'port of registry', {'concept': 'administrative territorial entity'}] ['MY Sam Simon', 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?r property:port_of_registry ?z . ?z rdf:type ontology:administrative_territorial_entity . VALUES ( ?r ) { ( resource:HSC_Condor_Rapide ) ( resource:MS_Viking_XPRS ) ( resource:MY_Sam_Simon ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q24826
P17
Q15617994
USER
Which administrative territory is that administrative territory present in ?
(Q24826,P17,c(Q15617994))
action filter_type
action find
entity Q24826
relation P17
type Q15617994
['Q24826', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q24826 property:P17 ?t }
Liverpool
action filter_type
action find
entity Liverpool
relation country
type designation for an administrative territorial entity
['Liverpool', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Liverpool property:country ?t }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q3141
SYSTEM
Did you mean Melbourne ?
Q24826 Q2467 Q3141
(Q24826,P17,c(Q15617994)) (Q2467,P17,c(Q15617994)) (Q3141,P17,c(Q15617994))
[ANSWER]
['Q24826', 'P17', {'concept': 'Q15617994'}] ['Q2467', 'P17', {'concept': 'Q15617994'}] ['Q3141', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q24826 property:P17 ?t }
Liverpool Nassau Melbourne
Did you mean Melbourne ?
Melbourne
['Liverpool', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Nassau', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Melbourne', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Liverpool property:country ?t }
[]
Simple Question (Coreferenced)
USER
No, I meant Liverpool. Could you tell me the answer for that?
(Q24826,P17,c(Q15617994))
Q24826
['Q24826', 'P17', {'concept': 'Q15617994'}]
['Liverpool', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q145
SYSTEM
United Kingdom
Q145
(Q24826,P17,c(Q15617994))
action filter_type
action find
entity Q24826
relation P17
type Q15617994
That administrative territory is the [ANSWER]
['Q24826', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q24826 property:P17 ?t }
United Kingdom
That administrative territory is the United Kingdom
United Kingdom
action filter_type
action find
entity Liverpool
relation country
type designation for an administrative territorial entity
['Liverpool', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Liverpool property:country ?t }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q145 Q41550 Q7985896
P463
Q43229
USER
Does that administrative territory have a membership of Organisation for Economic Co-operation and Development and West Mersea Yacht Club ?
(Q145,P463,Q41550) (Q145,P463,Q7985896)
action is_in
entity Q145
action intersection
action find_reverse
entity Q41550
relation P463
action find_reverse
entity Q7985896
relation P463
['Q145', 'P463', 'Q41550'] ['Q145', 'P463', 'Q7985896']
ASK WHERE { resource:Q145 property:P463 resource:Q41550 . resource:Q145 property:P463 resource:Q7985896 }
United Kingdom Organisation for Economic Co-operation and Development West Mersea Yacht Club
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Organisation for Economic Co-operation and Development
relation member of
action find_reverse
entity West Mersea Yacht Club
relation member of
['United Kingdom', 'member of', 'Organisation for Economic Co-operation and Development'] ['United Kingdom', 'member of', 'West Mersea Yacht Club']
ASK WHERE { resource:United_Kingdom property:member_of resource:Organisation_for_Economic_Co-operation_and_Development . resource:United_Kingdom property:member_of resource:West_Mersea_Yacht_Club }
[]
organization
SYSTEM
YES and NO respectively
(Q145,P463,Q41550) (Q145,P463,Q7985896)
action is_in
entity Q145
action intersection
action find_reverse
entity Q41550
relation P463
action find_reverse
entity Q7985896
relation P463
[ANSWER]
['Q145', 'P463', 'Q41550'] ['Q145', 'P463', 'Q7985896']
ASK WHERE { resource:Q145 property:P463 resource:Q41550 . resource:Q145 property:P463 resource:Q7985896 }
YES and NO respectively
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Organisation for Economic Co-operation and Development
relation member of
action find_reverse
entity West Mersea Yacht Club
relation member of
['United Kingdom', 'member of', 'Organisation for Economic Co-operation and Development'] ['United Kingdom', 'member of', 'West Mersea Yacht Club']
ASK WHERE { resource:United_Kingdom property:member_of resource:Organisation_for_Economic_Co-operation_and_Development . resource:United_Kingdom property:member_of resource:West_Mersea_Yacht_Club }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2006764
P36
Q515 Q56061 Q15617994
USER
How many administrative territories have less number of cities and administrative territories as their administrative centre than Xhariep District Municipality ?
(c(Q15617994),P36,c(Q515)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P36
type Q15617994
type Q515
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q2006764
relation P36
type Q515
type Q56061
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q515'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?h WHERE { VALUES ( ?d ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?w rdf:type ?d } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Q2006764 property:P36 ?c . { ?c rdf:type ?g . VALUES ( ?g ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } } } . FILTER ( ?b < ?v ) }
Xhariep District Municipality
action count
action less
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Xhariep District Municipality
relation capital
type city
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'city'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?h WHERE { VALUES ( ?d ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?w rdf:type ?d } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Xhariep_District_Municipality property:capital ?c . { ?c rdf:type ?g . VALUES ( ?g ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?b < ?v ) }
[]
city administrative territorial entity designation for an administrative territorial entity
SYSTEM
157
Q12631 Q2991354 Q3368 Q1111401 Q504637 Q2998020 Q3044731 Q2466631 Q12689 Q2527360 Q699731 Q3377 Q3372 Q1742192 Q3093 Q4464924 Q2344966 Q3259 Q12594 Q739 Q733 Q16628524 Q12798 Q12792 Q1284 Q1443 Q541811 Q1458 Q14551680 Q12700 Q12703 Q12709 Q12569 Q12574 Q12642 Q21296012 Q3216 Q3194 Q541589 Q12804 Q12808 Q1961264 Q3326 Q3286 Q12589 Q3266 Q3105 Q731547 Q33788 Q709 Q12740 Q12745 Q12779 Q2093388 Q12607 Q290739 Q598193 Q12576 Q1452646 Q2281221 Q1508919 Q12694 Q12515 Q12517 Q3364 Q3148 Q5613245 Q280312 Q12675 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q3118738 Q686312 Q697 Q12730 Q12736 Q2039306 Q662056 Q12657 Q12652 Q12556 Q694594 Q874 Q12816 Q4854468 Q2528268 Q3353 Q3357 Q492437 Q389004 Q492430 Q3278 Q3184 Q9073753 Q2900529 Q12772 Q1090678 Q19786899 Q1999970 Q155019 Q2348751 Q107426 Q511365 Q1270568 Q34762 Q793437 Q1270623 Q580447 Q10957559 Q965 Q962 Q2344833 Q3125 Q3120 Q3110307 Q12722 Q2039314 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q474421 Q3349 Q3083 Q3249 Q3164 Q12761 Q12765 Q224 Q691265 Q313175 Q3334 Q12572 Q2996404 Q12578 Q12679 Q3846423 Q176 Q161258 Q4496152 Q3514973 Q3113 Q12789 Q1234961 Q1222 Q5192588 Q672 Q12758 Q12753 Q12751 Q12564
(c(Q15617994),P36,c(Q515)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P36
type Q15617994
type Q515
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q2006764
relation P36
type Q515
type Q56061
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q515'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?h WHERE { VALUES ( ?d ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?w rdf:type ?d } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Q2006764 property:P36 ?c . { ?c rdf:type ?g . VALUES ( ?g ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } } } . FILTER ( ?b < ?v ) }
Meuse Aquiles Serdán Municipality Essonne Kispest District Alta Verapaz Department Corse Guyane Chiautla de Tapia Municipality Pas-de-Calais Stura Wied Eure-et-Loir Eure King's Lynn and West Norfolk Aisne Tugulymsky District Netrokona District Cantal Marne Colombia Paraguay San Salvador el Verde municipality Vendée Vaucluse Abruzzo Molise Ems-Oriental Calabria Principality of Lippe Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Loiret Morbihan Amatitlán Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Tecámac Municipality Corrèze Cher Manche Charente Vosges Lippe New Caledonia Marshall Islands Sarthe Savoie Tarn-et-Garonne Sunamganj District Haute-Marne Sesia Apennins Lot Montenotte Principality of Orange Marengo Puy-de-Dôme Gard Gers Drôme Ardèche Guadalupe Municipality Principality of Lüneburg Oise Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Guanentá Province Duchy of Amalfi Nauru Haute-Saône Saône-et-Loire Jamalpur District Cushamen Department Nièvre Moselle Indre-et-Loire Bremen-Verden Turkmenistan Yonne Bandava Mont-Blanc Creuse Dordogne Bouches-du-Weser Wallachia Bouches-de-l'Elbe Charente-Maritime Ariège San Vicente Tancuayalab municipality Bezirk Lothringen Tarn Sègre Magyaróvár District Upper Alsace Duchy of Lorraine Kurigram District Anjou Arvika Municipality Ems Principality of Bayreuth Bergantiños Meurthe Duchy of Styria Moldavia Burkina Faso Benin Kishoreganj District Hautes-Alpes Jura Golo Haut-Rhin Sherpur District Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Principality of Fürstenberg Côtes-d'Armor Ain Calvados Ardennes Seine-Saint-Denis Deux-Sèvres Croatia Mont-Terrible Saxe-Lauenburg Haute-Corse Haute-Loire Alushta municipality Lot-et-Garonne Orne Viesca Municipality Quebec Clipperton Island Khartsyzk Municipality Tanaro Allier Var Doire Aosta Valley Cuenca District, Huancavelica Tuvalu Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
157
action count
action less
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Xhariep District Municipality
relation capital
type city
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'city'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?h WHERE { VALUES ( ?d ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?w rdf:type ?d } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Xhariep_District_Municipality property:capital ?c . { ?c rdf:type ?g . VALUES ( ?g ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?b < ?v ) }
[]