Simple Question (Direct)
Simple Question
Q333959
P108
Q163740
USER
Which nonprofit organizations are the workplaces of Curtis T. McMullen ?
(Q333959,P108,c(Q163740))
action filter_type
action find
entity Q333959
relation P108
type Q163740
['Q333959', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?c WHERE { resource:Q333959 property:P108 ?c . ?c rdf:type ontology:Q163740 }
Curtis T. McMullen
action filter_type
action find
entity Curtis T. McMullen
relation employer
type nonprofit organization
['Curtis T. McMullen', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?c WHERE { resource:Curtis_T._McMullen property:employer ?c . ?c rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q21578 Q13371
SYSTEM
Princeton University, Harvard University
Q21578 Q13371
(Q333959,P108,c(Q163740))
action filter_type
action find
entity Q333959
relation P108
type Q163740
[ANSWERS] are the workplaces of Curtis T. McMullen
['Q333959', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?c WHERE { resource:Q333959 property:P108 ?c . ?c rdf:type ontology:Q163740 }
Princeton University Harvard University
Princeton University and Harvard University are the workplaces of Curtis T. McMullen
Princeton University Harvard University
action filter_type
action find
entity Curtis T. McMullen
relation employer
type nonprofit organization
['Curtis T. McMullen', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?c WHERE { resource:Curtis_T._McMullen property:employer ?c . ?c rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13371
P485
Q502895
USER
Which person has its archives at Harvard University ?
(c(Q502895),P485,Q13371)
action filter_type
action find_reverse
entity Q13371
relation P485
type Q502895
[{'concept': 'Q502895'}, 'P485', 'Q13371']
SELECT DISTINCT ?t WHERE { ?t property:P485 resource:Q13371 . ?t rdf:type ontology:Q502895 }
Harvard University
action filter_type
action find_reverse
entity Harvard University
relation archives at
type common name
[{'concept': 'common name'}, 'archives at', 'Harvard University']
SELECT DISTINCT ?t WHERE { ?t property:archives_at resource:Harvard_University . ?t rdf:type ontology:common_name }
[]
common name
Q21079026
SYSTEM
Roscoe Simmons
Q21079026
(c(Q502895),P485,Q13371)
action filter_type
action find_reverse
entity Q13371
relation P485
type Q502895
[ANSWER] has its archives at Harvard University
[{'concept': 'Q502895'}, 'P485', 'Q13371']
SELECT DISTINCT ?t WHERE { ?t property:P485 resource:Q13371 . ?t rdf:type ontology:Q502895 }
Roscoe Simmons
Roscoe Simmons has its archives at Harvard University
Roscoe Simmons
action filter_type
action find_reverse
entity Harvard University
relation archives at
type common name
[{'concept': 'common name'}, 'archives at', 'Harvard University']
SELECT DISTINCT ?t WHERE { ?t property:archives_at resource:Harvard_University . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13371
P159
Q56061
USER
Which administrative territory is the HQ of Harvard University ?
(Q13371,P159,c(Q56061))
action filter_type
action find
entity Q13371
relation P159
type Q56061
['Q13371', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q13371 property:P159 ?m }
Harvard University
action filter_type
action find
entity Harvard University
relation headquarters location
type administrative territorial entity
['Harvard University', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Harvard_University property:headquarters_location ?m }
[]
administrative territorial entity
Q49111
SYSTEM
Cambridge
Q49111
(Q13371,P159,c(Q56061))
action filter_type
action find
entity Q13371
relation P159
type Q56061
The [ANSWER] is the HQ of Harvard University
['Q13371', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q13371 property:P159 ?m }
Cambridge
The Cambridge is the HQ of Harvard University
Cambridge
action filter_type
action find
entity Harvard University
relation headquarters location
type administrative territorial entity
['Harvard University', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Harvard_University property:headquarters_location ?m }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q807704
Q56061
USER
And how about Arizona Department of Transportation?
(Q807704,P159,c(Q56061))
action filter_type
action find
entity Q807704
relation P159
type Q56061
['Q807704', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q807704 property:P159 ?x . ?x rdf:type ontology:Q56061 }
Arizona Department of Transportation
action filter_type
action find
entity Arizona Department of Transportation
relation headquarters location
type administrative territorial entity
['Arizona Department of Transportation', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Arizona_Department_of_Transportation property:headquarters_location ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16556
SYSTEM
Phoenix
Q16556
(Q807704,P159,c(Q56061))
action filter_type
action find
entity Q807704
relation P159
type Q56061
[ANSWER]
['Q807704', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q807704 property:P159 ?x . ?x rdf:type ontology:Q56061 }
Phoenix
Phoenix
action filter_type
action find
entity Arizona Department of Transportation
relation headquarters location
type administrative territorial entity
['Arizona Department of Transportation', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Arizona_Department_of_Transportation property:headquarters_location ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have exactly 1 administrative territory as registry port ?
(c(Q2235308),P532,c(Q56061))
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 1
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ontology:Q56061 . ?r rdf:type ontology:Q2235308 . ?r property:P532 ?x } GROUP BY ?r } . FILTER ( ?k = 1 ) }
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:ship_type . ?r property:port_of_registry ?x } GROUP BY ?r } . FILTER ( ?k = 1 ) }
[]
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 equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 1
[ANSWERS] have exactly 1 administrative territory as registry port
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ontology:Q56061 . ?r rdf:type ontology:Q2235308 . ?r property:P532 ?x } GROUP BY ?r } . FILTER ( ?k = 1 ) }
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 exactly 1 administrative territory as registry port
RMS Aquitania MS Oasis of the Seas MY Sam Simon
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:ship_type . ?r property:port_of_registry ?x } GROUP BY ?r } . FILTER ( ?k = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q49111
P740
Q874405 Q43229
USER
How many social groups or organizations were formed at Cambridge ?
(c(Q874405),P740,Q49111) (c(Q43229),P740,Q49111)
action count
action union
action filter_type
action find_reverse
entity Q49111
relation P740
type Q874405
action filter_type
action find_reverse
entity Q49111
relation P740
type Q43229
[{'concept': 'Q874405'}, 'P740', 'Q49111'] [{'concept': 'Q43229'}, 'P740', 'Q49111']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:P740 resource:Q49111 . ?k rdf:type ontology:Q874405 } UNION { ?k property:P740 resource:Q49111 . ?k rdf:type ontology:Q43229 } }
Cambridge
action count
action union
action filter_type
action find_reverse
entity Cambridge
relation location of formation
type social group
action filter_type
action find_reverse
entity Cambridge
relation location of formation
type organization
[{'concept': 'social group'}, 'location of formation', 'Cambridge'] [{'concept': 'organization'}, 'location of formation', 'Cambridge']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:location_of_formation resource:Cambridge . ?k rdf:type ontology:social_group } UNION { ?k property:location_of_formation resource:Cambridge . ?k rdf:type ontology:organization } }
[]
social group organization
SYSTEM
9
Q3812083 Q580916 Q484930 Q6042810 Q5204695 Q27474 Q156644 Q380 Q1206799
(c(Q874405),P740,Q49111) (c(Q43229),P740,Q49111)
action count
action union
action filter_type
action find_reverse
entity Q49111
relation P740
type Q874405
action filter_type
action find_reverse
entity Q49111
relation P740
type Q43229
[ANSWER]
[{'concept': 'Q874405'}, 'P740', 'Q49111'] [{'concept': 'Q43229'}, 'P740', 'Q49111']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:P740 resource:Q49111 . ?k rdf:type ontology:Q874405 } UNION { ?k property:P740 resource:Q49111 . ?k rdf:type ontology:Q43229 } }
KLH (company) Food Not Bombs Analog Devices Integrated Computer Solutions Harvard Apparatus New Directions Publishing Raytheon Facebook Inc. Wang Laboratories
9
action count
action union
action filter_type
action find_reverse
entity Cambridge
relation location of formation
type social group
action filter_type
action find_reverse
entity Cambridge
relation location of formation
type organization
[{'concept': 'social group'}, 'location of formation', 'Cambridge'] [{'concept': 'organization'}, 'location of formation', 'Cambridge']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:location_of_formation resource:Cambridge . ?k rdf:type ontology:social_group } UNION { ?k property:location_of_formation resource:Cambridge . ?k rdf:type ontology:organization } }
[]