Simple Question (Direct)
Simple Question
Q333804
P102
Q7210356
USER
Which party is Hugh Cairns, 1st Earl Cairns affiliated with ?
(Q333804,P102,c(Q7210356))
action filter_type
action find
entity Q333804
relation P102
type Q7210356
['Q333804', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q333804 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Hugh Cairns, 1st Earl Cairns
action filter_type
action find
entity Hugh Cairns, 1st Earl Cairns
relation member of political party
type political organization
['Hugh Cairns, 1st Earl Cairns', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Hugh_Cairns,_1st_Earl_Cairns property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q333804,P102,c(Q7210356))
action filter_type
action find
entity Q333804
relation P102
type Q7210356
Hugh Cairns , 1st Earl Cairns is affiliated with [ANSWER]
['Q333804', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q333804 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Conservative Party
Hugh Cairns , 1st Earl Cairns is affiliated with Conservative Party
Conservative Party
action filter_type
action find
entity Hugh Cairns, 1st Earl Cairns
relation member of political party
type political organization
['Hugh Cairns, 1st Earl Cairns', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Hugh_Cairns,_1st_Earl_Cairns property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q333804
P20
Q56061
USER
Where did Hugh Cairns, 1st Earl Cairns expire ?
(Q333804,P20,c(Q56061))
action filter_type
action find
entity Q333804
relation P20
type Q56061
['Q333804', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q333804 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Hugh Cairns, 1st Earl Cairns
action filter_type
action find
entity Hugh Cairns, 1st Earl Cairns
relation place of death
type administrative territorial entity
['Hugh Cairns, 1st Earl Cairns', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Hugh_Cairns,_1st_Earl_Cairns property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q170478
SYSTEM
Bournemouth
Q170478
(Q333804,P20,c(Q56061))
action filter_type
action find
entity Q333804
relation P20
type Q56061
Hugh Cairns , 1st Earl Cairns expired in [ANSWER]
['Q333804', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q333804 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Bournemouth
Hugh Cairns , 1st Earl Cairns expired in Bournemouth
Bournemouth
action filter_type
action find
entity Hugh Cairns, 1st Earl Cairns
relation place of death
type administrative territorial entity
['Hugh Cairns, 1st Earl Cairns', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Hugh_Cairns,_1st_Earl_Cairns property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q333804
P937
Q56061
USER
Which administrative territory is the work location of that person ?
(Q170478,P937,c(Q56061))
action filter_type
action find
entity Q333804
relation P937
type Q56061
['Q170478', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q333804 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Hugh Cairns, 1st Earl Cairns
action filter_type
action find
entity Hugh Cairns, 1st Earl Cairns
relation work location
type administrative territorial entity
['Bournemouth', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Hugh_Cairns,_1st_Earl_Cairns property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q170478,P937,c(Q56061))
action filter_type
action find
entity Q333804
relation P937
type Q56061
[ANSWER] is the work location of that person
['Q170478', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q333804 property:P937 ?c . ?c rdf:type ontology:Q56061 }
London
London is the work location of that person
London
action filter_type
action find
entity Hugh Cairns, 1st Earl Cairns
relation work location
type administrative territorial entity
['Bournemouth', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Hugh_Cairns,_1st_Earl_Cairns property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q18222466 Q333804
P937
Q56061
USER
Or Thomas A. Klar?
OR((Q333804,P937,c(Q56061)), (Q18222466,P937,c(Q56061)))
action filter_type
action union
action find
entity Q333804
relation P937
action find
entity Q18222466
relation P937
type Q56061
{'OR': [['Q333804', 'P937', {'concept': 'Q56061'}], ['Q18222466', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?i ) { ( resource:Q333804 ) ( resource:Q18222466 ) } . ?i property:P937 ?z } . ?z rdf:type ontology:Q56061 }
Thomas A. Klar Hugh Cairns, 1st Earl Cairns
action filter_type
action union
action find
entity Hugh Cairns, 1st Earl Cairns
relation work location
action find
entity Thomas A. Klar
relation work location
type administrative territorial entity
{'OR': [['Hugh Cairns, 1st Earl Cairns', 'work location', {'concept': 'administrative territorial entity'}], ['Thomas A. Klar', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?i ) { ( resource:Hugh_Cairns,_1st_Earl_Cairns ) ( resource:Thomas_A._Klar ) } . ?i property:work_location ?z } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726 Q205929 Q41329 Q84 Q3033
SYSTEM
Munich, Ilmenau, Linz, London, Göttingen
Q1726 Q205929 Q41329 Q84 Q3033
OR((Q333804,P937,c(Q56061)), (Q18222466,P937,c(Q56061)))
action filter_type
action union
action find
entity Q333804
relation P937
action find
entity Q18222466
relation P937
type Q56061
[ANSWERS]
{'OR': [['Q333804', 'P937', {'concept': 'Q56061'}], ['Q18222466', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?i ) { ( resource:Q333804 ) ( resource:Q18222466 ) } . ?i property:P937 ?z } . ?z rdf:type ontology:Q56061 }
Munich Ilmenau Linz London Göttingen
Munich Ilmenau Linz London Göttingen
action filter_type
action union
action find
entity Hugh Cairns, 1st Earl Cairns
relation work location
action find
entity Thomas A. Klar
relation work location
type administrative territorial entity
{'OR': [['Hugh Cairns, 1st Earl Cairns', 'work location', {'concept': 'administrative territorial entity'}], ['Thomas A. Klar', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?i ) { ( resource:Hugh_Cairns,_1st_Earl_Cairns ) ( resource:Thomas_A._Klar ) } . ?i property:work_location ?z } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q84 Q1187041
P1408
Q4830453
USER
How many business enterprises have procured license for broadcasting to London or State College ?
(c(Q4830453),P1408,Q84) (c(Q4830453),P1408,Q1187041)
action count
action union
action filter_type
action find_reverse
entity Q84
relation P1408
type Q4830453
action filter_type
action find_reverse
entity Q1187041
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', 'Q84'] [{'concept': 'Q4830453'}, 'P1408', 'Q1187041']
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { ?p property:P1408 resource:Q1187041 . ?p rdf:type ontology:Q4830453 } UNION { ?p property:P1408 resource:Q84 . ?p rdf:type ontology:Q4830453 } }
London State College
action count
action union
action filter_type
action find_reverse
entity London
relation licensed to broadcast to
type business enterprise
action filter_type
action find_reverse
entity State College
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'London'] [{'concept': 'business enterprise'}, 'licensed to broadcast to', 'State College']
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { ?p property:licensed_to_broadcast_to resource:State_College . ?p rdf:type ontology:business_enterprise } UNION { ?p property:licensed_to_broadcast_to resource:London . ?p rdf:type ontology:business_enterprise } }
[]
business enterprise
SYSTEM
6
Q5104020 Q6394349 Q7280695 Q7949277 Q7955424 Q7947185
(c(Q4830453),P1408,Q84) (c(Q4830453),P1408,Q1187041)
action count
action union
action filter_type
action find_reverse
entity Q84
relation P1408
type Q4830453
action filter_type
action find_reverse
entity Q1187041
relation P1408
type Q4830453
[ANSWER]
[{'concept': 'Q4830453'}, 'P1408', 'Q84'] [{'concept': 'Q4830453'}, 'P1408', 'Q1187041']
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { ?p property:P1408 resource:Q1187041 . ?p rdf:type ontology:Q4830453 } UNION { ?p property:P1408 resource:Q84 . ?p rdf:type ontology:Q4830453 } }
Choice FM Kerrang Radio Radio Brunel WFGE WRXV WBHV-FM
6
action count
action union
action filter_type
action find_reverse
entity London
relation licensed to broadcast to
type business enterprise
action filter_type
action find_reverse
entity State College
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'London'] [{'concept': 'business enterprise'}, 'licensed to broadcast to', 'State College']
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { ?p property:licensed_to_broadcast_to resource:State_College . ?p rdf:type ontology:business_enterprise } UNION { ?p property:licensed_to_broadcast_to resource:London . ?p rdf:type ontology:business_enterprise } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q24027224
P532
Q56061 Q2235308
USER
How many ship types have more number of administrative territories as their registry harbour than Blue Jacket ?
(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 Q24027224
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?a ) WHERE { ?n rdf:type ontology:Q56061 . ?x rdf:type ontology:Q2235308 . ?x property:P532 ?n } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Q24027224 property:P532 ?r . ?r rdf:type ontology:Q2235308 } } . FILTER ( ?a > ?h ) }
Blue Jacket
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 Blue Jacket
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?a ) WHERE { ?n rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:ship_type . ?x property:port_of_registry ?n } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Blue_Jacket property:port_of_registry ?r . ?r rdf:type ontology:ship_type } } . FILTER ( ?a > ?h ) }
[]
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 Q24027224
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?a ) WHERE { ?n rdf:type ontology:Q56061 . ?x rdf:type ontology:Q2235308 . ?x property:P532 ?n } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Q24027224 property:P532 ?r . ?r rdf:type ontology:Q2235308 } } . FILTER ( ?a > ?h ) }
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 Blue Jacket
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?a ) WHERE { ?n rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:ship_type . ?x property:port_of_registry ?n } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Blue_Jacket property:port_of_registry ?r . ?r rdf:type ontology:ship_type } } . FILTER ( ?a > ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q24027308
P532
Q56061 Q2235308
USER
And how about Martha Lloyd?
(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 Q24027308
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?p ) WHERE { ?h property:P532 ?e . ?h rdf:type ontology:Q2235308 . ?e rdf:type ontology:Q56061 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ontology:Q2235308 . resource:Q24027308 property:P532 ?s } } . FILTER ( ?p > ?q ) }
Martha Lloyd
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 Martha Lloyd
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?p ) WHERE { ?h property:port_of_registry ?e . ?h rdf:type ontology:ship_type . ?e rdf:type ontology:administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ontology:ship_type . resource:Martha_Lloyd property:port_of_registry ?s } } . FILTER ( ?p > ?q ) }
[]
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 Q24027308
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?p ) WHERE { ?h property:P532 ?e . ?h rdf:type ontology:Q2235308 . ?e rdf:type ontology:Q56061 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ontology:Q2235308 . resource:Q24027308 property:P532 ?s } } . FILTER ( ?p > ?q ) }
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 Martha Lloyd
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?p ) WHERE { ?h property:port_of_registry ?e . ?h rdf:type ontology:ship_type . ?e rdf:type ontology:administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { ?s rdf:type ontology:ship_type . resource:Martha_Lloyd property:port_of_registry ?s } } . FILTER ( ?p > ?q ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5191568 Q9626
P495 P17
Q15617994
USER
Which administrative territories are Conservative Party a part of or are the countries of origin of Cserebere ?
OR((Q9626,P17,c(Q15617994)), (Q5191568,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q9626
relation P17
action find
entity Q5191568
relation P495
type Q15617994
{'OR': [['Q9626', 'P17', {'concept': 'Q15617994'}], ['Q5191568', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q9626 property:P17 ?k } UNION { resource:Q5191568 property:P495 ?k } } . ?k rdf:type ontology:Q15617994 }
Cserebere Conservative Party
action filter_type
action union
action find
entity Conservative Party
relation country
action find
entity Cserebere
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Conservative Party', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Cserebere', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Conservative_Party property:country ?k } UNION { resource:Cserebere property:country_of_origin ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28 Q145
SYSTEM
Hungary, United Kingdom
Q28 Q145
OR((Q9626,P17,c(Q15617994)), (Q5191568,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q9626
relation P17
action find
entity Q5191568
relation P495
type Q15617994
[ANSWERS] are Conservative Party a part of or are the countries of origin of Cserebere
{'OR': [['Q9626', 'P17', {'concept': 'Q15617994'}], ['Q5191568', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q9626 property:P17 ?k } UNION { resource:Q5191568 property:P495 ?k } } . ?k rdf:type ontology:Q15617994 }
Hungary United Kingdom
Hungary and United Kingdom are Conservative Party a part of or are the countries of origin of Cserebere
Hungary United Kingdom
action filter_type
action union
action find
entity Conservative Party
relation country
action find
entity Cserebere
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Conservative Party', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Cserebere', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Conservative_Party property:country ?k } UNION { resource:Cserebere property:country_of_origin ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q84 Q5087663
P915
Q838948
USER
How many works of art were filmed at London and Chatham Historic Dockyard ?
(c(Q838948),P915,Q84) (c(Q838948),P915,Q5087663)
action count
action intersection
action filter_type
action find_reverse
entity Q84
relation P915
type Q838948
action filter_type
action find_reverse
entity Q5087663
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q84'] [{'concept': 'Q838948'}, 'P915', 'Q5087663']
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:P915 resource:Q5087663 . ?h rdf:type ontology:Q838948 . ?h property:P915 resource:Q84 . ?h rdf:type ontology:Q838948 }
London Chatham Historic Dockyard
action count
action intersection
action filter_type
action find_reverse
entity London
relation filming location
type work of art
action filter_type
action find_reverse
entity Chatham Historic Dockyard
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'London'] [{'concept': 'work of art'}, 'filming location', 'Chatham Historic Dockyard']
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:filming_location resource:Chatham_Historic_Dockyard . ?h rdf:type ontology:work_of_art . ?h property:filming_location resource:London . ?h rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
2
Q28234 Q14488725
(c(Q838948),P915,Q84) (c(Q838948),P915,Q5087663)
action count
action intersection
action filter_type
action find_reverse
entity Q84
relation P915
type Q838948
action filter_type
action find_reverse
entity Q5087663
relation P915
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q84'] [{'concept': 'Q838948'}, 'P915', 'Q5087663']
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:P915 resource:Q5087663 . ?h rdf:type ontology:Q838948 . ?h property:P915 resource:Q84 . ?h rdf:type ontology:Q838948 }
Les Misérables The Man from U.N.C.L.E.
2
action count
action intersection
action filter_type
action find_reverse
entity London
relation filming location
type work of art
action filter_type
action find_reverse
entity Chatham Historic Dockyard
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'London'] [{'concept': 'work of art'}, 'filming location', 'Chatham Historic Dockyard']
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:filming_location resource:Chatham_Historic_Dockyard . ?h rdf:type ontology:work_of_art . ?h property:filming_location resource:London . ?h rdf:type ontology:work_of_art }
[]