Simple Question (Direct)
Simple Question
Q7326241
P641
Q349
USER
What did Richard Hancox participate in ?
(Q7326241,P641,c(Q349))
action filter_type
action find
entity Q7326241
relation P641
type Q349
['Q7326241', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q7326241 property:P641 ?v . ?v rdf:type ontology:Q349 }
Richard Hancox
action filter_type
action find
entity Richard Hancox
relation sport
type sport
['Richard Hancox', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Richard_Hancox property:sport ?v . ?v rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7326241,P641,c(Q349))
action filter_type
action find
entity Q7326241
relation P641
type Q349
Richard Hancox participated in [ANSWER]
['Q7326241', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q7326241 property:P641 ?v . ?v rdf:type ontology:Q349 }
association football
Richard Hancox participated in association football
association football
action filter_type
action find
entity Richard Hancox
relation sport
type sport
['Richard Hancox', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Richard_Hancox property:sport ?v . ?v rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7326241
P19
Q56061
USER
Where was Richard Hancox born ?
(Q7326241,P19,c(Q56061))
action filter_type
action find
entity Q7326241
relation P19
type Q56061
['Q7326241', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q7326241 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Richard Hancox
action filter_type
action find
entity Richard Hancox
relation place of birth
type administrative territorial entity
['Richard Hancox', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Richard_Hancox property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q661707
SYSTEM
Stourbridge
Q661707
(Q7326241,P19,c(Q56061))
action filter_type
action find
entity Q7326241
relation P19
type Q56061
Richard Hancox was born in [ANSWER]
['Q7326241', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q7326241 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Stourbridge
Richard Hancox was born in Stourbridge
Stourbridge
action filter_type
action find
entity Richard Hancox
relation place of birth
type administrative territorial entity
['Richard Hancox', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Richard_Hancox property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4934292
Q56061
USER
And how about Bob Walker?
(Q4934292,P19,c(Q56061))
action filter_type
action find
entity Q4934292
relation P19
type Q56061
['Q4934292', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q4934292 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Bob Walker
action filter_type
action find
entity Bob Walker
relation place of birth
type administrative territorial entity
['Bob Walker', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Bob_Walker property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1248150
SYSTEM
Wallsend
Q1248150
(Q4934292,P19,c(Q56061))
action filter_type
action find
entity Q4934292
relation P19
type Q56061
[ANSWER]
['Q4934292', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q4934292 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Wallsend
Wallsend
action filter_type
action find
entity Bob Walker
relation place of birth
type administrative territorial entity
['Bob Walker', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Bob_Walker property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q24027192
P532
Q56061 Q2235308
USER
How many ship types have their base port as more number of administrative territories than Maid of Meirion ?
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027192
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?x ) WHERE { ?n property:P532 ?m . ?n rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ontology:Q2235308 . resource:Q24027192 property:P532 ?d } } . FILTER ( ?x > ?j ) }
Maid of Meirion
action count
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 Maid of Meirion
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?x ) WHERE { ?n property:port_of_registry ?m . ?n rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ontology:ship_type . resource:Maid_of_Meirion property:port_of_registry ?d } } . FILTER ( ?x > ?j ) }
[]
administrative territorial entity ship type
SYSTEM
70
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 count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027192
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?x ) WHERE { ?n property:P532 ?m . ?n rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ontology:Q2235308 . resource:Q24027192 property:P532 ?d } } . FILTER ( ?x > ?j ) }
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
70
action count
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 Maid of Meirion
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?x ) WHERE { ?n property:port_of_registry ?m . ?n rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ontology:ship_type . resource:Maid_of_Meirion property:port_of_registry ?d } } . FILTER ( ?x > ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q24027259
P532
Q56061 Q2235308
USER
And what about Ann & Mary?
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027259
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?r ) WHERE { ?s property:P532 ?e . ?s rdf:type ontology:Q2235308 . ?e rdf:type ontology:Q56061 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Q24027259 property:P532 ?v . ?v rdf:type ontology:Q2235308 } } . FILTER ( ?r > ?b ) }
Ann & Mary
action count
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 Ann & Mary
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?r ) WHERE { ?s property:port_of_registry ?e . ?s rdf:type ontology:ship_type . ?e rdf:type ontology:administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Ann_&_Mary property:port_of_registry ?v . ?v rdf:type ontology:ship_type } } . FILTER ( ?r > ?b ) }
[]
administrative territorial entity ship type
SYSTEM
70
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 count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027259
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?r ) WHERE { ?s property:P532 ?e . ?s rdf:type ontology:Q2235308 . ?e rdf:type ontology:Q56061 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Q24027259 property:P532 ?v . ?v rdf:type ontology:Q2235308 } } . FILTER ( ?r > ?b ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
70
action count
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 Ann & Mary
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?r ) WHERE { ?s property:port_of_registry ?e . ?s rdf:type ontology:ship_type . ?e rdf:type ontology:administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Ann_&_Mary property:port_of_registry ?v . ?v rdf:type ontology:ship_type } } . FILTER ( ?r > ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2736
P466
Q483110
USER
What is the stadium occupied by association football ?
(c(Q483110),P466,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P466
type Q483110
[{'concept': 'Q483110'}, 'P466', 'Q2736']
SELECT DISTINCT ?z WHERE { ?z property:P466 resource:Q2736 . ?z rdf:type ontology:Q483110 }
association football
action filter_type
action find_reverse
entity association football
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'association football']
SELECT DISTINCT ?z WHERE { ?z property:occupant resource:association_football . ?z rdf:type ontology:stadium }
[]
stadium
Q5402116
SYSTEM
Estádio Municipal Radialista Mário Helênio
Q5402116
(c(Q483110),P466,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P466
type Q483110
The stadium occupied by association football is the [ANSWER]
[{'concept': 'Q483110'}, 'P466', 'Q2736']
SELECT DISTINCT ?z WHERE { ?z property:P466 resource:Q2736 . ?z rdf:type ontology:Q483110 }
Estádio Municipal Radialista Mário Helênio
The stadium occupied by association football is the Estádio Municipal Radialista Mário Helênio
Estádio Municipal Radialista Mário Helênio
action filter_type
action find_reverse
entity association football
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'association football']
SELECT DISTINCT ?z WHERE { ?z property:occupant resource:association_football . ?z rdf:type ontology:stadium }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2736
P495
Q1496967
USER
Where did association football originate ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?o WHERE { resource:Q2736 property:P495 ?o . ?o rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:association_football property:country_of_origin ?o . ?o rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
Association football originated from [ANSWER]
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?o WHERE { resource:Q2736 property:P495 ?o . ?o rdf:type ontology:Q1496967 }
England
Association football originated from England
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:association_football property:country_of_origin ?o . ?o rdf:type ontology:territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7729952
Q1496967
USER
And how about The Devil's Tune?
(Q7729952,P495,c(Q1496967))
action filter_type
action find
entity Q7729952
relation P495
type Q1496967
['Q7729952', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?u WHERE { resource:Q7729952 property:P495 ?u . ?u rdf:type ontology:Q1496967 }
The Devil's Tune
action filter_type
action find
entity The Devil's Tune
relation country of origin
type territorial entity
["The Devil's Tune", 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:The_Devil's_Tune property:country_of_origin ?u . ?u rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q7729952,P495,c(Q1496967))
action filter_type
action find
entity Q7729952
relation P495
type Q1496967
[ANSWER]
['Q7729952', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?u WHERE { resource:Q7729952 property:P495 ?u . ?u rdf:type ontology:Q1496967 }
England
England
action filter_type
action find
entity The Devil's Tune
relation country of origin
type territorial entity
["The Devil's Tune", 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:The_Devil's_Tune property:country_of_origin ?u . ?u rdf:type ontology:territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1354911 Q7326241
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Richard Hancox or Javier Giménez Noble ?
OR((Q7326241,P27,c(Q15617994)), (Q1354911,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7326241
relation P27
action find
entity Q1354911
relation P27
type Q15617994
{'OR': [['Q7326241', 'P27', {'concept': 'Q15617994'}], ['Q1354911', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { VALUES ( ?p ) { ( resource:Q7326241 ) ( resource:Q1354911 ) } . ?p property:P27 ?c } }
Javier Giménez Noble Richard Hancox
action filter_type
action union
action find
entity Richard Hancox
relation country of citizenship
action find
entity Javier Giménez Noble
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Richard Hancox', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Javier Giménez Noble', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?p ) { ( resource:Richard_Hancox ) ( resource:Javier_Giménez_Noble ) } . ?p property:country_of_citizenship ?c } }
[]
designation for an administrative territorial entity
Q414 Q145
SYSTEM
Argentina, United Kingdom
Q414 Q145
OR((Q7326241,P27,c(Q15617994)), (Q1354911,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7326241
relation P27
action find
entity Q1354911
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Richard Hancox or Javier Giménez Noble
{'OR': [['Q7326241', 'P27', {'concept': 'Q15617994'}], ['Q1354911', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { VALUES ( ?p ) { ( resource:Q7326241 ) ( resource:Q1354911 ) } . ?p property:P27 ?c } }
Argentina United Kingdom
Argentina and United Kingdom are the countries of citizenship of Richard Hancox or Javier Giménez Noble
Argentina United Kingdom
action filter_type
action union
action find
entity Richard Hancox
relation country of citizenship
action find
entity Javier Giménez Noble
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Richard Hancox', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Javier Giménez Noble', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?p ) { ( resource:Richard_Hancox ) ( resource:Javier_Giménez_Noble ) } . ?p property:country_of_citizenship ?c } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3285136
P495
Q838948
USER
Did Man to Man originate in those administrative territories ?
(Q3285136,P495,Q414) (Q3285136,P495,Q145)
action is_in
entity prev_answer
action find
entity Q3285136
relation P495
['Q3285136', 'P495', 'Q414'] ['Q3285136', 'P495', 'Q145']
ASK WHERE { resource:Q3285136 property:P495 ?v . VALUES ( ?v ) { ( resource:Q414 ) ( resource:Q145 ) } }
Man to Man
action is_in
entity prev_answer
action find
entity Man to Man
relation country of origin
['Man to Man', 'country of origin', 'Argentina'] ['Man to Man', 'country of origin', 'United Kingdom']
ASK WHERE { resource:Man_to_Man property:country_of_origin ?v . VALUES ( ?v ) { ( resource:Argentina ) ( resource:United_Kingdom ) } }
[]
work of art
SYSTEM
YES
(Q3285136,P495,Q414) (Q3285136,P495,Q145)
action is_in
entity prev_answer
action find
entity Q3285136
relation P495
[ANSWER]
['Q3285136', 'P495', 'Q414'] ['Q3285136', 'P495', 'Q145']
ASK WHERE { resource:Q3285136 property:P495 ?v . VALUES ( ?v ) { ( resource:Q414 ) ( resource:Q145 ) } }
Yes
action is_in
entity prev_answer
action find
entity Man to Man
relation country of origin
['Man to Man', 'country of origin', 'Argentina'] ['Man to Man', 'country of origin', 'United Kingdom']
ASK WHERE { resource:Man_to_Man property:country_of_origin ?v . VALUES ( ?v ) { ( resource:Argentina ) ( resource:United_Kingdom ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q424407 Q21
P27 P17
Q15617994
USER
Which administrative territories are England located in or are Akwá an inhabitant of ?
OR((Q21,P17,c(Q15617994)), (Q424407,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q21
relation P17
action find
entity Q424407
relation P27
type Q15617994
{'OR': [['Q21', 'P17', {'concept': 'Q15617994'}], ['Q424407', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q21 property:P17 ?z } UNION { resource:Q424407 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Akwá England
action filter_type
action union
action find
entity England
relation country
action find
entity Akwá
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['England', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Akwá', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:England property:country ?z } UNION { resource:Akwá property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q916
SYSTEM
United Kingdom, Angola
Q145 Q916
OR((Q21,P17,c(Q15617994)), (Q424407,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q21
relation P17
action find
entity Q424407
relation P27
type Q15617994
England are located or are Akwá an inhabitant of the [ANSWERS]
{'OR': [['Q21', 'P17', {'concept': 'Q15617994'}], ['Q424407', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q21 property:P17 ?z } UNION { resource:Q424407 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
United Kingdom Angola
England are located or are Akwá an inhabitant of the United Kingdom and Angola
United Kingdom Angola
action filter_type
action union
action find
entity England
relation country
action find
entity Akwá
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['England', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Akwá', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:England property:country ?z } UNION { resource:Akwá property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q398
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with more number of administrative territories than Bahrain ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?l ) WHERE { ?e rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 . ?e property:P530 ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q398 property:P530 ?q } } . FILTER ( ?l > ?m ) }
Bahrain
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Bahrain
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?l ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bahrain property:diplomatic_relation ?q } } . FILTER ( ?l > ?m ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q1049 Q843 Q228 Q227 Q224 Q222 Q347 Q17 Q974 Q1033 Q298 Q115 Q114 Q212 Q213 Q211 Q215 Q916 Q79 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with more number of administrative territories than Bahrain
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?l ) WHERE { ?e rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 . ?e property:P530 ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q398 property:P530 ?q } } . FILTER ( ?l > ?m ) }
Israel Yemen India Argentina France United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Sudan Pakistan Andorra Azerbaijan Croatia Albania Liechtenstein Japan Democratic Republic of the Congo Nigeria Chile Ethiopia Kenya Ukraine Czech Republic Latvia Slovenia Angola Egypt Jordan Libya Cape Verde Spain Zambia
Italy, Brazil and United States of America have diplomatic relationships with more number of administrative territories than Bahrain
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Bahrain
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?l ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bahrain property:diplomatic_relation ?q } } . FILTER ( ?l > ?m ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q145
P530
Q15617994 Q15617994
USER
And also tell me about United Kingdom?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q145
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?b ) WHERE { ?z rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?z property:P530 ?p } GROUP BY ?z } . FILTER ( ?b > ?n ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { resource:Q145 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } }
United Kingdom
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?b ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:diplomatic_relation ?p } GROUP BY ?z } . FILTER ( ?b > ?n ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { resource:United_Kingdom property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q142 Q148 Q159 Q155 Q30 Q38
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q145
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?b ) WHERE { ?z rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?z property:P530 ?p } GROUP BY ?z } . FILTER ( ?b > ?n ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { resource:Q145 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } }
Israel Yemen France People's Republic of China Russia Brazil United States of America Italy
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?b ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:diplomatic_relation ?p } GROUP BY ?z } . FILTER ( ?b > ?n ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { resource:United_Kingdom property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q846
P530
Q15617994
USER
How many administrative territories have diplomatic associations with United Kingdom or Qatar ?
(c(Q15617994),P530,Q145) (c(Q15617994),P530,Q846)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q846
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q145'] [{'concept': 'Q15617994'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { { ?k rdf:type ontology:Q15617994 . ?k property:P530 resource:Q145 } UNION { ?k rdf:type ontology:Q15617994 . ?k property:P530 resource:Q846 } }
United Kingdom Qatar
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation resource:United_Kingdom } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation resource:Qatar } }
[]
designation for an administrative territorial entity
SYSTEM
13
Q142 Q858 Q805 Q230 Q801 Q155 Q17 Q37 Q114 Q403 Q929 Q38 Q902
(c(Q15617994),P530,Q145) (c(Q15617994),P530,Q846)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q846
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q145'] [{'concept': 'Q15617994'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { { ?k rdf:type ontology:Q15617994 . ?k property:P530 resource:Q145 } UNION { ?k rdf:type ontology:Q15617994 . ?k property:P530 resource:Q846 } }
France Syria Yemen Georgia Israel Brazil Japan Lithuania Kenya Serbia Central African Republic Italy Bangladesh
13
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation resource:United_Kingdom } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation resource:Qatar } }
[]