Simple Question (Direct)
Simple Question
Q7652304
P102
Q7210356
USER
Which party does Sverre Løberg belong to ?
(Q7652304,P102,c(Q7210356))
action filter_type
action find
entity Q7652304
relation P102
type Q7210356
['Q7652304', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q7652304 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Sverre Løberg
action filter_type
action find
entity Sverre Løberg
relation member of political party
type political organization
['Sverre Løberg', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Sverre_Løberg property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
political organization
Q190219
SYSTEM
Norwegian Labour Party
Q190219
(Q7652304,P102,c(Q7210356))
action filter_type
action find
entity Q7652304
relation P102
type Q7210356
Sverre Løberg belongs in [ANSWER]
['Q7652304', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q7652304 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Norwegian Labour Party
Sverre Løberg belongs in Norwegian Labour Party
Norwegian Labour Party
action filter_type
action find
entity Sverre Løberg
relation member of political party
type political organization
['Sverre Løberg', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Sverre_Løberg property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q190219
P463
Q502895
USER
Which person has a membership of that political organization ?
(c(Q502895),P463,Q190219)
action filter_type
action find_reverse
entity Q190219
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q190219']
SELECT DISTINCT ?h WHERE { ?h property:P463 resource:Q190219 . ?h rdf:type ontology:Q502895 }
Norwegian Labour Party
action filter_type
action find_reverse
entity Norwegian Labour Party
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Norwegian Labour Party']
SELECT DISTINCT ?h WHERE { ?h property:member_of resource:Norwegian_Labour_Party . ?h rdf:type ontology:common_name }
[]
common name
Q26237184
SYSTEM
Bengt Halvard Odden
Q26237184
(c(Q502895),P463,Q190219)
action filter_type
action find_reverse
entity Q190219
relation P463
type Q502895
[ANSWER] has a membership of that political organization
[{'concept': 'Q502895'}, 'P463', 'Q190219']
SELECT DISTINCT ?h WHERE { ?h property:P463 resource:Q190219 . ?h rdf:type ontology:Q502895 }
Bengt Halvard Odden
Bengt Halvard Odden has a membership of that political organization
Bengt Halvard Odden
action filter_type
action find_reverse
entity Norwegian Labour Party
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Norwegian Labour Party']
SELECT DISTINCT ?h WHERE { ?h property:member_of resource:Norwegian_Labour_Party . ?h rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4294565 Q190219
P159
Q56061
USER
Which administrative territories are the head office for Norwegian Labour Party or Ministry of Food Processing Industries located ?
OR((Q190219,P159,c(Q56061)), (Q4294565,P159,c(Q56061)))
action filter_type
action union
action find
entity Q190219
relation P159
action find
entity Q4294565
relation P159
type Q56061
{'OR': [['Q190219', 'P159', {'concept': 'Q56061'}], ['Q4294565', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q190219 property:P159 ?o } UNION { resource:Q4294565 property:P159 ?o } } . ?o rdf:type ontology:Q56061 }
Ministry of Food Processing Industries Norwegian Labour Party
action filter_type
action union
action find
entity Norwegian Labour Party
relation headquarters location
action find
entity Ministry of Food Processing Industries
relation headquarters location
type administrative territorial entity
{'OR': [['Norwegian Labour Party', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Ministry of Food Processing Industries', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Norwegian_Labour_Party property:headquarters_location ?o } UNION { resource:Ministry_of_Food_Processing_Industries property:headquarters_location ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q987 Q585
SYSTEM
New Delhi, Oslo
Q987 Q585
OR((Q190219,P159,c(Q56061)), (Q4294565,P159,c(Q56061)))
action filter_type
action union
action find
entity Q190219
relation P159
action find
entity Q4294565
relation P159
type Q56061
[ANSWERS] are the head office for Norwegian Labour Party or Ministry of Food Processing Industries located
{'OR': [['Q190219', 'P159', {'concept': 'Q56061'}], ['Q4294565', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q190219 property:P159 ?o } UNION { resource:Q4294565 property:P159 ?o } } . ?o rdf:type ontology:Q56061 }
New Delhi Oslo
New Delhi and Oslo are the head office for Norwegian Labour Party or Ministry of Food Processing Industries located
New Delhi Oslo
action filter_type
action union
action find
entity Norwegian Labour Party
relation headquarters location
action find
entity Ministry of Food Processing Industries
relation headquarters location
type administrative territorial entity
{'OR': [['Norwegian Labour Party', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Ministry of Food Processing Industries', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Norwegian_Labour_Party property:headquarters_location ?o } UNION { resource:Ministry_of_Food_Processing_Industries property:headquarters_location ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24027238
P532
Q56061 Q2235308
USER
Which ship types are the registry port of more number of administrative territories than Volunteer ?
(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 Q24027238
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?c ) AS ?l ) WHERE { ?z property:P532 ?c . ?z rdf:type ontology:Q2235308 . ?c rdf:type ontology:Q56061 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Q24027238 property:P532 ?w . ?w rdf:type ontology:Q2235308 } } . FILTER ( ?l > ?i ) }
Volunteer
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 Volunteer
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?c ) AS ?l ) WHERE { ?z property:port_of_registry ?c . ?z rdf:type ontology:ship_type . ?c rdf:type ontology:administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Volunteer property:port_of_registry ?w . ?w rdf:type ontology:ship_type } } . FILTER ( ?l > ?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 Q24027238
relation P532
type Q2235308
[ANSWERS] are the registry port of more number of administrative territories than Volunteer
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?c ) AS ?l ) WHERE { ?z property:P532 ?c . ?z rdf:type ontology:Q2235308 . ?c rdf:type ontology:Q56061 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Q24027238 property:P532 ?w . ?w rdf:type ontology:Q2235308 } } . FILTER ( ?l > ?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 and RMS Aquitania are the registry port of more number of administrative territories than Volunteer
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 Volunteer
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?c ) AS ?l ) WHERE { ?z property:port_of_registry ?c . ?z rdf:type ontology:ship_type . ?c rdf:type ontology:administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Volunteer property:port_of_registry ?w . ?w rdf:type ontology:ship_type } } . FILTER ( ?l > ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3306
P532
Q56061 Q2235308
USER
Which administrative territories are the ports of registry of less number of ship types than Panama City ?
(c(Q2235308),P532,c(Q56061))
action less
action find_reverse_tuple_counts
relation P532
type Q56061
type Q2235308
action count
action filter_type
action find_reverse
entity Q3306
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?p ) WHERE { ?t property:P532 ?m . ?m rdf:type ontology:Q56061 . ?t rdf:type ontology:Q2235308 } GROUP BY ?m } . FILTER ( ?p < ?n ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P532 resource:Q3306 . ?z rdf:type ontology:Q2235308 } } }
Panama City
action less
action find_reverse_tuple_counts
relation port of registry
type administrative territorial entity
type ship type
action count
action filter_type
action find_reverse
entity Panama City
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?p ) WHERE { ?t property:port_of_registry ?m . ?m rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:ship_type } GROUP BY ?m } . FILTER ( ?p < ?n ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:port_of_registry resource:Panama_City . ?z rdf:type ontology:ship_type } } }
[]
administrative territorial entity ship type
Q1874 Q727 Q60
SYSTEM
Odessa, Amsterdam, New York City
Q1754 Q58976 Q193367 Q727 Q1544563 Q185632 Q3130 Q641390 Q33518 Q996129 Q4093 Q26793 Q79848 Q188304 Q3141 Q38511 Q3304501 Q34116 Q172996 Q1874 Q60 Q34370 Q499355 Q1851 Q334 Q26563 Q959
(c(Q2235308),P532,c(Q56061))
action less
action find_reverse_tuple_counts
relation P532
type Q56061
type Q2235308
action count
action filter_type
action find_reverse
entity Q3306
relation P532
type Q2235308
[ANSWERS] are the ports of registry of less number of ship types than Panama City
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?p ) WHERE { ?t property:P532 ?m . ?m rdf:type ontology:Q56061 . ?t rdf:type ontology:Q2235308 } GROUP BY ?m } . FILTER ( ?p < ?n ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P532 resource:Q3306 . ?z rdf:type ontology:Q2235308 } } }
Stockholm Piraeus Porvoo Amsterdam Hellerup Limassol Sydney Breskens Dover Cap d'Agde Glasgow Bergen Southampton Sunderland Melbourne Turku Taarbæk Thunder Bay George Town Odessa New York City Rotterdam Parrsboro Arkhangelsk Singapore Roskilde Vladivostok
Odessa, Amsterdam and New York City are the ports of registry of less number of ship types than Panama City
Odessa Amsterdam New York City
action less
action find_reverse_tuple_counts
relation port of registry
type administrative territorial entity
type ship type
action count
action filter_type
action find_reverse
entity Panama City
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?p ) WHERE { ?t property:port_of_registry ?m . ?m rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:ship_type } GROUP BY ?m } . FILTER ( ?p < ?n ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:port_of_registry resource:Panama_City . ?z rdf:type ontology:ship_type } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4306068 Q3306
P17
Q15617994
USER
Which administrative territories are Panama City or The Beatles Story present in ?
OR((Q3306,P17,c(Q15617994)), (Q4306068,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3306
relation P17
action find
entity Q4306068
relation P17
type Q15617994
{'OR': [['Q3306', 'P17', {'concept': 'Q15617994'}], ['Q4306068', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?l ) { ( resource:Q4306068 ) ( resource:Q3306 ) } . ?l property:P17 ?n } . ?n rdf:type ontology:Q15617994 }
The Beatles Story Panama City
action filter_type
action union
action find
entity Panama City
relation country
action find
entity The Beatles Story
relation country
type designation for an administrative territorial entity
{'OR': [['Panama City', 'country', {'concept': 'designation for an administrative territorial entity'}], ['The Beatles Story', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?l ) { ( resource:The_Beatles_Story ) ( resource:Panama_City ) } . ?l property:country ?n } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q804 Q145
SYSTEM
Panama, United Kingdom
Q804 Q145
OR((Q3306,P17,c(Q15617994)), (Q4306068,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3306
relation P17
action find
entity Q4306068
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q3306', 'P17', {'concept': 'Q15617994'}], ['Q4306068', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?l ) { ( resource:Q4306068 ) ( resource:Q3306 ) } . ?l property:P17 ?n } . ?n rdf:type ontology:Q15617994 }
Panama United Kingdom
Which administrative territories are Panama City or The Beatles Story present in
Panama United Kingdom
action filter_type
action union
action find
entity Panama City
relation country
action find
entity The Beatles Story
relation country
type designation for an administrative territorial entity
{'OR': [['Panama City', 'country', {'concept': 'designation for an administrative territorial entity'}], ['The Beatles Story', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?l ) { ( resource:The_Beatles_Story ) ( resource:Panama_City ) } . ?l property:country ?n } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P85
Q484692
USER
Which is the national anthem of United States of America ?
(Q30,P85,c(Q484692))
action filter_type
action find
entity Q30
relation P85
type Q484692
['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q484692 . resource:Q30 property:P85 ?w }
United States of America
action filter_type
action find
entity United States of America
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:hymn . resource:United_States_of_America property:anthem ?w }
[]
hymn
Q44696
SYSTEM
The Star-Spangled Banner
Q44696
(Q30,P85,c(Q484692))
action filter_type
action find
entity Q30
relation P85
type Q484692
The national anthem of United States of America is [ANSWER]
['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q484692 . resource:Q30 property:P85 ?w }
The Star-Spangled Banner
The national anthem of United States of America is The Star-Spangled Banner
The Star-Spangled Banner
action filter_type
action find
entity United States of America
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:hymn . resource:United_States_of_America property:anthem ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P30
Q2221906
USER
Which geographic locations are that administrative territory located in ?
(Q44696,P30,c(Q2221906))
action filter_type
action find
entity Q30
relation P30
type Q2221906
['Q44696', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q2221906 . resource:Q30 property:P30 ?z }
United States of America
action filter_type
action find
entity United States of America
relation continent
type geographic location
['The Star-Spangled Banner', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:geographic_location . resource:United_States_of_America property:continent ?z }
[]
geographic location
Q49 Q538
SYSTEM
North America, Oceania
Q49 Q538
(Q44696,P30,c(Q2221906))
action filter_type
action find
entity Q30
relation P30
type Q2221906
That administrative territory are located in [ANSWERS]
['Q44696', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q2221906 . resource:Q30 property:P30 ?z }
North America Oceania
That administrative territory are located in North America and Oceania
North America Oceania
action filter_type
action find
entity United States of America
relation continent
type geographic location
['The Star-Spangled Banner', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:geographic_location . resource:United_States_of_America property:continent ?z }
[]