Simple Question (Direct)
Simple Question
Q6046613
P102
Q7210356
USER
Which party is Anders Pettersson affiliated with ?
(Q6046613,P102,c(Q7210356))
action filter_type
action find
entity Q6046613
relation P102
type Q7210356
['Q6046613', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q6046613 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Anders Pettersson
action filter_type
action find
entity Anders Pettersson
relation member of political party
type political organization
['Anders Pettersson', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Anders_Pettersson property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q110832
SYSTEM
Centre Party
Q110832
(Q6046613,P102,c(Q7210356))
action filter_type
action find
entity Q6046613
relation P102
type Q7210356
Anders Pettersson is affiliated with [ANSWER]
['Q6046613', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q6046613 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Centre Party
Anders Pettersson is affiliated with Centre Party
Centre Party
action filter_type
action find
entity Anders Pettersson
relation member of political party
type political organization
['Anders Pettersson', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Anders_Pettersson property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1468144 Q6046613
P937 P20
Q56061
USER
Which administrative territories are the work locations of Anders Pettersson or did the demise of Fritz Schalk occur ?
OR((Q6046613,P937,c(Q56061)), (Q1468144,P20,c(Q56061)))
action filter_type
action union
action find
entity Q6046613
relation P937
action find
entity Q1468144
relation P20
type Q56061
{'OR': [['Q6046613', 'P937', {'concept': 'Q56061'}], ['Q1468144', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . { { resource:Q6046613 property:P937 ?y } UNION { resource:Q1468144 property:P20 ?y } } }
Fritz Schalk Anders Pettersson
action filter_type
action union
action find
entity Anders Pettersson
relation work location
action find
entity Fritz Schalk
relation place of death
type administrative territorial entity
{'OR': [['Anders Pettersson', 'work location', {'concept': 'administrative territorial entity'}], ['Fritz Schalk', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . { { resource:Anders_Pettersson property:work_location ?y } UNION { resource:Fritz_Schalk property:place_of_death ?y } } }
[]
administrative territorial entity
Q1754 Q365
SYSTEM
Stockholm, Cologne
Q1754 Q365
OR((Q6046613,P937,c(Q56061)), (Q1468144,P20,c(Q56061)))
action filter_type
action union
action find
entity Q6046613
relation P937
action find
entity Q1468144
relation P20
type Q56061
[ANSWERS] are the work locations of Anders Pettersson or did the demise of Fritz Schalk occur
{'OR': [['Q6046613', 'P937', {'concept': 'Q56061'}], ['Q1468144', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . { { resource:Q6046613 property:P937 ?y } UNION { resource:Q1468144 property:P20 ?y } } }
Stockholm Cologne
Stockholm and Cologne are the work locations of Anders Pettersson or did the demise of Fritz Schalk occur
Stockholm Cologne
action filter_type
action union
action find
entity Anders Pettersson
relation work location
action find
entity Fritz Schalk
relation place of death
type administrative territorial entity
{'OR': [['Anders Pettersson', 'work location', {'concept': 'administrative territorial entity'}], ['Fritz Schalk', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . { { resource:Anders_Pettersson property:work_location ?y } UNION { resource:Fritz_Schalk property:place_of_death ?y } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q469715
P532
Q56061 Q2235308
USER
How many ship types have greater number of administrative territories as their base harbour than MV Colombo Express ?
(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 Q469715
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?k ) WHERE { ?v property:P532 ?d . ?v rdf:type ontology:Q2235308 . ?d rdf:type ontology:Q56061 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Q469715 property:P532 ?t . ?t rdf:type ontology:Q2235308 } } . FILTER ( ?k > ?i ) }
MV Colombo Express
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 MV Colombo Express
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?k ) WHERE { ?v property:port_of_registry ?d . ?v rdf:type ontology:ship_type . ?d rdf:type ontology:administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:MV_Colombo_Express property:port_of_registry ?t . ?t rdf:type ontology:ship_type } } . FILTER ( ?k > ?i ) }
[]
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 Q469715
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?k ) WHERE { ?v property:P532 ?d . ?v rdf:type ontology:Q2235308 . ?d rdf:type ontology:Q56061 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Q469715 property:P532 ?t . ?t rdf:type ontology:Q2235308 } } . FILTER ( ?k > ?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
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 MV Colombo Express
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?k ) WHERE { ?v property:port_of_registry ?d . ?v rdf:type ontology:ship_type . ?d rdf:type ontology:administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:MV_Colombo_Express property:port_of_registry ?t . ?t rdf:type ontology:ship_type } } . FILTER ( ?k > ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q24027032
P532
Q56061 Q2235308
USER
And what about Ellen Catherine?
(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 Q24027032
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ontology:Q2235308 . resource:Q24027032 property:P532 ?f } } . FILTER ( ?q > ?m ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?q ) WHERE { ?u property:P532 ?i . ?u rdf:type ontology:Q2235308 . ?i rdf:type ontology:Q56061 } GROUP BY ?u } }
Ellen Catherine
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 Ellen Catherine
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ontology:ship_type . resource:Ellen_Catherine property:port_of_registry ?f } } . FILTER ( ?q > ?m ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?q ) WHERE { ?u property:port_of_registry ?i . ?u rdf:type ontology:ship_type . ?i rdf:type ontology:administrative_territorial_entity } GROUP BY ?u } }
[]
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 Q24027032
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ontology:Q2235308 . resource:Q24027032 property:P532 ?f } } . FILTER ( ?q > ?m ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?q ) WHERE { ?u property:P532 ?i . ?u rdf:type ontology:Q2235308 . ?i rdf:type ontology:Q56061 } GROUP BY ?u } }
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 Ellen Catherine
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ontology:ship_type . resource:Ellen_Catherine property:port_of_registry ?f } } . FILTER ( ?q > ?m ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?q ) WHERE { ?u property:port_of_registry ?i . ?u rdf:type ontology:ship_type . ?i rdf:type ontology:administrative_territorial_entity } GROUP BY ?u } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q110832
P463
Q7278
USER
Which political party was Centre Party a member of ?
(Q110832,P463,c(Q7278))
action filter_type
action find
entity Q110832
relation P463
type Q7278
['Q110832', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ?e WHERE { resource:Q110832 property:P463 ?e . ?e rdf:type ontology:Q7278 }
Centre Party
action filter_type
action find
entity Centre Party
relation member of
type political party
['Centre Party', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ?e WHERE { resource:Centre_Party property:member_of ?e . ?e rdf:type ontology:political_party }
[]
political party
Q25079
SYSTEM
Alliance of Liberals and Democrats for Europe Party
Q25079
(Q110832,P463,c(Q7278))
action filter_type
action find
entity Q110832
relation P463
type Q7278
Party [ANSWER] was Centre Party a member of
['Q110832', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ?e WHERE { resource:Q110832 property:P463 ?e . ?e rdf:type ontology:Q7278 }
Alliance of Liberals and Democrats for Europe Party
Party Alliance of Liberals and Democrats for Europe Party was Centre Party a member of
Alliance of Liberals and Democrats for Europe Party
action filter_type
action find
entity Centre Party
relation member of
type political party
['Centre Party', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ?e WHERE { resource:Centre_Party property:member_of ?e . ?e rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q25079 Q21537565
P102
Q502895
USER
Is Ewen Thomas Taylor Downie a member of that political party ?
(Q21537565,P102,Q25079)
action is_in
entity Q21537565
action find
entity Q25079
relation P102
['Q21537565', 'P102', 'Q25079']
ASK WHERE { resource:Q25079 property:P102 resource:Q21537565 }
Alliance of Liberals and Democrats for Europe Party Ewen Thomas Taylor Downie
action is_in
entity Ewen Thomas Taylor Downie
action find
entity Alliance of Liberals and Democrats for Europe Party
relation member of political party
['Ewen Thomas Taylor Downie', 'member of political party', 'Alliance of Liberals and Democrats for Europe Party']
ASK WHERE { resource:Alliance_of_Liberals_and_Democrats_for_Europe_Party property:member_of_political_party resource:Ewen_Thomas_Taylor_Downie }
[]
common name
SYSTEM
NO
(Q21537565,P102,Q25079)
action is_in
entity Q21537565
action find
entity Q25079
relation P102
[ANSWER]
['Q21537565', 'P102', 'Q25079']
ASK WHERE { resource:Q25079 property:P102 resource:Q21537565 }
No
action is_in
entity Ewen Thomas Taylor Downie
action find
entity Alliance of Liberals and Democrats for Europe Party
relation member of political party
['Ewen Thomas Taylor Downie', 'member of political party', 'Alliance of Liberals and Democrats for Europe Party']
ASK WHERE { resource:Alliance_of_Liberals_and_Democrats_for_Europe_Party property:member_of_political_party resource:Ewen_Thomas_Taylor_Downie }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q6046613 Q1754
P937
Q56061
USER
Is Stockholm the work location of that person ?
(Q6046613,P937,Q1754)
action is_in
entity Q1754
action find
entity Q6046613
relation P937
['Q6046613', 'P937', 'Q1754']
ASK WHERE { resource:Q6046613 property:P937 resource:Q1754 }
Anders Pettersson Stockholm
action is_in
entity Stockholm
action find
entity Anders Pettersson
relation work location
['Anders Pettersson', 'work location', 'Stockholm']
ASK WHERE { resource:Anders_Pettersson property:work_location resource:Stockholm }
[]
administrative territorial entity
SYSTEM
YES
(Q6046613,P937,Q1754)
action is_in
entity Q1754
action find
entity Q6046613
relation P937
[ANSWER]
['Q6046613', 'P937', 'Q1754']
ASK WHERE { resource:Q6046613 property:P937 resource:Q1754 }
Yes
action is_in
entity Stockholm
action find
entity Anders Pettersson
relation work location
['Anders Pettersson', 'work location', 'Stockholm']
ASK WHERE { resource:Anders_Pettersson property:work_location resource:Stockholm }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q25079 Q5217521
P488
Q502895
USER
Did Daniel Horne serve as the chairperson of Alliance of Liberals and Democrats for Europe Party ?
(Q25079,P488,Q5217521)
action is_in
entity Q5217521
action find
entity Q25079
relation P488
['Q25079', 'P488', 'Q5217521']
ASK WHERE { resource:Q25079 property:P488 resource:Q5217521 }
Alliance of Liberals and Democrats for Europe Party Daniel Horne
action is_in
entity Daniel Horne
action find
entity Alliance of Liberals and Democrats for Europe Party
relation chairperson
['Alliance of Liberals and Democrats for Europe Party', 'chairperson', 'Daniel Horne']
ASK WHERE { resource:Alliance_of_Liberals_and_Democrats_for_Europe_Party property:chairperson resource:Daniel_Horne }
[]
common name
SYSTEM
NO
(Q25079,P488,Q5217521)
action is_in
entity Q5217521
action find
entity Q25079
relation P488
[ANSWER]
['Q25079', 'P488', 'Q5217521']
ASK WHERE { resource:Q25079 property:P488 resource:Q5217521 }
No
action is_in
entity Daniel Horne
action find
entity Alliance of Liberals and Democrats for Europe Party
relation chairperson
['Alliance of Liberals and Democrats for Europe Party', 'chairperson', 'Daniel Horne']
ASK WHERE { resource:Alliance_of_Liberals_and_Democrats_for_Europe_Party property:chairperson resource:Daniel_Horne }
[]