Simple Question (Direct)
Simple Question
Q16145691
P39
Q12737077
USER
Which occupation was a position occupied by Gene Reynolds ?
(Q16145691,P39,c(Q12737077))
action filter_type
action find
entity Q16145691
relation P39
type Q12737077
['Q16145691', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q16145691 property:P39 ?w }
Gene Reynolds
action filter_type
action find
entity Gene Reynolds
relation position held
type occupation
['Gene Reynolds', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Gene_Reynolds property:position_held ?w }
[]
occupation
Q17355090
SYSTEM
member of the Louisiana House of Representatives
Q17355090
(Q16145691,P39,c(Q12737077))
action filter_type
action find
entity Q16145691
relation P39
type Q12737077
Two [ANSWER] was a position occupied by Gene Reynolds
['Q16145691', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q16145691 property:P39 ?w }
member of the Louisiana House of Representatives
Two member of the Louisiana House of Representatives was a position occupied by Gene Reynolds
member of the Louisiana House of Representatives
action filter_type
action find
entity Gene Reynolds
relation position held
type occupation
['Gene Reynolds', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Gene_Reynolds property:position_held ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16145691
P1412
Q34770
USER
Which language can Gene Reynolds read ?
(Q16145691,P1412,c(Q34770))
action filter_type
action find
entity Q16145691
relation P1412
type Q34770
['Q16145691', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q16145691 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Gene Reynolds
action filter_type
action find
entity Gene Reynolds
relation languages spoken, written or signed
type language
['Gene Reynolds', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Gene_Reynolds property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q16145691,P1412,c(Q34770))
action filter_type
action find
entity Q16145691
relation P1412
type Q34770
Gene Reynolds can read in [ANSWER]
['Q16145691', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q16145691 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
English
Gene Reynolds can read in English
English
action filter_type
action find
entity Gene Reynolds
relation languages spoken, written or signed
type language
['Gene Reynolds', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Gene_Reynolds property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1860 Q1346342
P361
Q5962346
USER
Is English a component of Anglic languages ?
(Q1860,P361,Q1346342)
action is_in
entity Q1346342
action find
entity Q1860
relation P361
['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q1346342 }
English Anglic languages
action is_in
entity Anglic languages
action find
entity English
relation part of
['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:Anglic_languages }
[]
classification scheme
SYSTEM
YES
(Q1860,P361,Q1346342)
action is_in
entity Q1346342
action find
entity Q1860
relation P361
[ANSWER]
['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q1346342 }
Yes
action is_in
entity Anglic languages
action find
entity English
relation part of
['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:Anglic_languages }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q17355090 Q105127
P17
Q15617994
USER
Is member of the Louisiana House of Representatives a part of Malegno ?
(Q17355090,P17,Q105127)
action is_in
entity Q105127
action find
entity Q17355090
relation P17
['Q17355090', 'P17', 'Q105127']
ASK WHERE { resource:Q17355090 property:P17 resource:Q105127 }
member of the Louisiana House of Representatives Malegno
action is_in
entity Malegno
action find
entity member of the Louisiana House of Representatives
relation country
['member of the Louisiana House of Representatives', 'country', 'Malegno']
ASK WHERE { resource:member_of_the_Louisiana_House_of_Representatives property:country resource:Malegno }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q17355090,P17,Q105127)
action is_in
entity Q105127
action find
entity Q17355090
relation P17
[ANSWER]
['Q17355090', 'P17', 'Q105127']
ASK WHERE { resource:Q17355090 property:P17 resource:Q105127 }
No
action is_in
entity Malegno
action find
entity member of the Louisiana House of Representatives
relation country
['member of the Louisiana House of Representatives', 'country', 'Malegno']
ASK WHERE { resource:member_of_the_Louisiana_House_of_Representatives property:country resource:Malegno }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P37
Q34770 Q56061
USER
Which administrative territories are known to have max number of languages as their official language ?
(c(Q56061),P37,c(Q34770))
action argmax
action find_tuple_counts
relation P37
type Q56061
type Q34770
[{'concept': 'Q56061'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?y ) { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?r ) WHERE { ?d property:P37 ?i . ?d rdf:type ontology:Q56061 . ?i rdf:type ontology:Q34770 } GROUP BY ?d } } . { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?k ) WHERE { ?s property:P37 ?h . ?h rdf:type ontology:Q34770 . ?s rdf:type ontology:Q56061 } GROUP BY ?s } . FILTER ( ?k = ?y ) }
action argmax
action find_tuple_counts
relation official language
type administrative territorial entity
type language
[{'concept': 'administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?y ) { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?r ) WHERE { ?d property:official_language ?i . ?d rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:language } GROUP BY ?d } } . { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?k ) WHERE { ?s property:official_language ?h . ?h rdf:type ontology:language . ?s rdf:type ontology:administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?k = ?y ) }
[]
language administrative territorial entity
Q458
SYSTEM
European Union
Q458
(c(Q56061),P37,c(Q34770))
action argmax
action find_tuple_counts
relation P37
type Q56061
type Q34770
[ANSWER] is known to have max number of languages as their official language
[{'concept': 'Q56061'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?y ) { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?r ) WHERE { ?d property:P37 ?i . ?d rdf:type ontology:Q56061 . ?i rdf:type ontology:Q34770 } GROUP BY ?d } } . { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?k ) WHERE { ?s property:P37 ?h . ?h rdf:type ontology:Q34770 . ?s rdf:type ontology:Q56061 } GROUP BY ?s } . FILTER ( ?k = ?y ) }
European Union
European Union is known to have max number of languages as their official language
European Union
action argmax
action find_tuple_counts
relation official language
type administrative territorial entity
type language
[{'concept': 'administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?y ) { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?r ) WHERE { ?d property:official_language ?i . ?d rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:language } GROUP BY ?d } } . { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?k ) WHERE { ?s property:official_language ?h . ?h rdf:type ontology:language . ?s rdf:type ontology:administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?k = ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q25173
P532
Q56061 Q2235308
USER
Which ship types have around the same number of administrative territories as their registry harbour as RMS Titanic ?
(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 Q25173
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?n ) WHERE { ?d property:P532 ?r . ?d rdf:type ontology:Q2235308 . ?r rdf:type ontology:Q56061 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { resource:Q25173 property:P532 ?c . ?c rdf:type ontology:Q2235308 } } . FILTER ( ?n = ?k ) }
RMS Titanic
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 RMS Titanic
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?n ) WHERE { ?d property:port_of_registry ?r . ?d rdf:type ontology:ship_type . ?r rdf:type ontology:administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { resource:RMS_Titanic property:port_of_registry ?c . ?c rdf:type ontology:ship_type } } . FILTER ( ?n = ?k ) }
[]
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 Q25173
relation P532
type Q2235308
[ANSWERS] have around the same number of administrative territories as their registry harbour as RMS Titanic
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?n ) WHERE { ?d property:P532 ?r . ?d rdf:type ontology:Q2235308 . ?r rdf:type ontology:Q56061 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { resource:Q25173 property:P532 ?c . ?c rdf:type ontology:Q2235308 } } . FILTER ( ?n = ?k ) }
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 have around the same number of administrative territories as their registry harbour as RMS Titanic
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 RMS Titanic
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?n ) WHERE { ?d property:port_of_registry ?r . ?d rdf:type ontology:ship_type . ?r rdf:type ontology:administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { resource:RMS_Titanic property:port_of_registry ?c . ?c rdf:type ontology:ship_type } } . FILTER ( ?n = ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q300311
P532
Q56061 Q2235308
USER
And what about A?
(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 Q300311
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?e ) WHERE { ?h property:P532 ?t . ?h rdf:type ontology:Q2235308 . ?t rdf:type ontology:Q56061 } GROUP BY ?h } . FILTER ( ?e = ?z ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:Q2235308 . resource:Q300311 property:P532 ?m } } }
A
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 A
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?e ) WHERE { ?h property:port_of_registry ?t . ?h rdf:type ontology:ship_type . ?t rdf:type ontology:administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?e = ?z ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:ship_type . resource:A property:port_of_registry ?m } } }
[]
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 Q300311
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?e ) WHERE { ?h property:P532 ?t . ?h rdf:type ontology:Q2235308 . ?t rdf:type ontology:Q56061 } GROUP BY ?h } . FILTER ( ?e = ?z ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:Q2235308 . resource:Q300311 property:P532 ?m } } }
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 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 A
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?e ) WHERE { ?h property:port_of_registry ?t . ?h rdf:type ontology:ship_type . ?t rdf:type ontology:administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?e = ?z ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:ship_type . resource:A property:port_of_registry ?m } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7456333 Q1346342
P361
Q5962346
USER
Which classification schemes are Anglic languages or Setaman language a part of ?
OR((Q1346342,P361,c(Q5962346)), (Q7456333,P361,c(Q5962346)))
action filter_type
action union
action find
entity Q1346342
relation P361
action find
entity Q7456333
relation P361
type Q5962346
{'OR': [['Q1346342', 'P361', {'concept': 'Q5962346'}], ['Q7456333', 'P361', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q5962346 . { { resource:Q1346342 property:P361 ?t } UNION { resource:Q7456333 property:P361 ?t } } }
Setaman language Anglic languages
action filter_type
action union
action find
entity Anglic languages
relation part of
action find
entity Setaman language
relation part of
type classification scheme
{'OR': [['Anglic languages', 'part of', {'concept': 'classification scheme'}], ['Setaman language', 'part of', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:classification_scheme . { { resource:Anglic_languages property:part_of ?t } UNION { resource:Setaman_language property:part_of ?t } } }
[]
classification scheme
Q26721 Q5329170 Q34018
SYSTEM
West Germanic languages, Anglo-Frisian languages, trans–New Guinea languages
Q26721 Q5329170 Q34018
OR((Q1346342,P361,c(Q5962346)), (Q7456333,P361,c(Q5962346)))
action filter_type
action union
action find
entity Q1346342
relation P361
action find
entity Q7456333
relation P361
type Q5962346
[ANSWERS] are Anglic languages or Setaman language a part of
{'OR': [['Q1346342', 'P361', {'concept': 'Q5962346'}], ['Q7456333', 'P361', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q5962346 . { { resource:Q1346342 property:P361 ?t } UNION { resource:Q7456333 property:P361 ?t } } }
West Germanic languages Anglo-Frisian languages trans–New Guinea languages
West Germanic languages, Anglo-Frisian languages and trans–New Guinea languages are Anglic languages or Setaman language a part of
West Germanic languages Anglo-Frisian languages trans–New Guinea languages
action filter_type
action union
action find
entity Anglic languages
relation part of
action find
entity Setaman language
relation part of
type classification scheme
{'OR': [['Anglic languages', 'part of', {'concept': 'classification scheme'}], ['Setaman language', 'part of', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:classification_scheme . { { resource:Anglic_languages property:part_of ?t } UNION { resource:Setaman_language property:part_of ?t } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q2235308 Q2235308 Q34442
USER
How many ship types are the origin of exactly 2 ship types and roads ?
(c(Q2235308)|c(Q34442),P138,c(Q2235308))
action count
action equal
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q2235308
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q34442
value 2
[[{'concept': 'Q2235308'}, {'concept': 'Q34442'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:P138 ?b . ?b rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q2235308 } UNION { ?x property:P138 ?b . ?b rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q34442 } } GROUP BY ?b } . FILTER ( ?y = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation named after
type ship type
type ship type
action find_reverse_tuple_counts
relation named after
type ship type
type road
value 2
[[{'concept': 'ship type'}, {'concept': 'road'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:named_after ?b . ?b rdf:type ontology:ship_type . ?x rdf:type ontology:ship_type } UNION { ?x property:named_after ?b . ?b rdf:type ontology:ship_type . ?x rdf:type ontology:road } } GROUP BY ?b } . FILTER ( ?y = 2 ) }
[]
ship type ship type road
SYSTEM
4
Q7872159 Q175437 Q1572254 Q7868281
(c(Q2235308)|c(Q34442),P138,c(Q2235308))
action count
action equal
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q2235308
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q34442
value 2
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q34442'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:P138 ?b . ?b rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q2235308 } UNION { ?x property:P138 ?b . ?b rdf:type ontology:Q2235308 . ?x rdf:type ontology:Q34442 } } GROUP BY ?b } . FILTER ( ?y = 2 ) }
USS Navajo SS Vega USS Bonhomme Richard USS Cherokee
4
action count
action equal
action union
action find_reverse_tuple_counts
relation named after
type ship type
type ship type
action find_reverse_tuple_counts
relation named after
type ship type
type road
value 2
[[{'concept': 'ship type'}, {'concept': 'road'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:named_after ?b . ?b rdf:type ontology:ship_type . ?x rdf:type ontology:ship_type } UNION { ?x property:named_after ?b . ?b rdf:type ontology:ship_type . ?x rdf:type ontology:road } } GROUP BY ?b } . FILTER ( ?y = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q458
P159
Q43229
USER
Which organization has its head office location at European Union ?
(c(Q43229),P159,Q458)
action filter_type
action find_reverse
entity Q458
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q458']
SELECT DISTINCT ?w WHERE { ?w property:P159 resource:Q458 . ?w rdf:type ontology:Q43229 }
European Union
action filter_type
action find_reverse
entity European Union
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'European Union']
SELECT DISTINCT ?w WHERE { ?w property:headquarters_location resource:European_Union . ?w rdf:type ontology:organization }
[]
organization
Q7161745
SYSTEM
Peltarion
Q7161745
(c(Q43229),P159,Q458)
action filter_type
action find_reverse
entity Q458
relation P159
type Q43229
[ANSWER] has its head office location at European Union
[{'concept': 'Q43229'}, 'P159', 'Q458']
SELECT DISTINCT ?w WHERE { ?w property:P159 resource:Q458 . ?w rdf:type ontology:Q43229 }
Peltarion
Peltarion has its head office location at European Union
Peltarion
action filter_type
action find_reverse
entity European Union
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'European Union']
SELECT DISTINCT ?w WHERE { ?w property:headquarters_location resource:European_Union . ?w rdf:type ontology:organization }
[]