Simple Question (Direct)
Simple Question
Q111192
P735
Q82799
USER
What is the firstname of Scarlett Werner ?
(Q111192,P735,c(Q82799))
action filter_type
action find
entity Q111192
relation P735
type Q82799
['Q111192', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q111192 property:P735 ?s . ?s rdf:type ontology:Q82799 }
Scarlett Werner
action filter_type
action find
entity Scarlett Werner
relation given name
type name
['Scarlett Werner', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Scarlett_Werner property:given_name ?s . ?s rdf:type ontology:name }
[]
name
Q3951638
SYSTEM
Scarlett
Q3951638
(Q111192,P735,c(Q82799))
action filter_type
action find
entity Q111192
relation P735
type Q82799
The firstname of [ANSWER] Werner is of [ANSWER]
['Q111192', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q111192 property:P735 ?s . ?s rdf:type ontology:Q82799 }
Scarlett
The firstname of Scarlett Werner is of Scarlett
Scarlett
action filter_type
action find
entity Scarlett Werner
relation given name
type name
['Scarlett Werner', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Scarlett_Werner property:given_name ?s . ?s rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3951638
P1533
Q82799
USER
Which name is indistinguishable from that one ?
(Q3951638,P1533,c(Q82799))
action filter_type
action find
entity Q3951638
relation P1533
type Q82799
['Q3951638', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ?b WHERE { resource:Q3951638 property:P1533 ?b . ?b rdf:type ontology:Q82799 }
Scarlett
action filter_type
action find
entity Scarlett
relation family name identical to this first name
type name
['Scarlett', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ?b WHERE { resource:Scarlett property:family_name_identical_to_this_first_name ?b . ?b rdf:type ontology:name }
[]
name
Q16882798
SYSTEM
Scarlett
Q16882798
(Q3951638,P1533,c(Q82799))
action filter_type
action find
entity Q3951638
relation P1533
type Q82799
[ANSWER] is indistinguishable from that one
['Q3951638', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ?b WHERE { resource:Q3951638 property:P1533 ?b . ?b rdf:type ontology:Q82799 }
Scarlett
Scarlett is indistinguishable from that one
Scarlett
action filter_type
action find
entity Scarlett
relation family name identical to this first name
type name
['Scarlett', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ?b WHERE { resource:Scarlett property:family_name_identical_to_this_first_name ?b . ?b rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q111192
P551
Q56061
USER
Where did Scarlett Werner live ?
(Q111192,P551,c(Q56061))
action filter_type
action find
entity Q111192
relation P551
type Q56061
['Q111192', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q111192 property:P551 ?a . ?a rdf:type ontology:Q56061 }
Scarlett Werner
action filter_type
action find
entity Scarlett Werner
relation residence
type administrative territorial entity
['Scarlett Werner', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Scarlett_Werner property:residence ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726
SYSTEM
Munich
Q1726
(Q111192,P551,c(Q56061))
action filter_type
action find
entity Q111192
relation P551
type Q56061
Scarlett Werner lived in [ANSWER]
['Q111192', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q111192 property:P551 ?a . ?a rdf:type ontology:Q56061 }
Munich
Scarlett Werner lived in Munich
Munich
action filter_type
action find
entity Scarlett Werner
relation residence
type administrative territorial entity
['Scarlett Werner', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Scarlett_Werner property:residence ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1726 Q1906976 Q183
P17
Q1048835
USER
Is that administrative territory present in Tabanera de Valdavia and Germany ?
(Q1726,P17,Q1906976) (Q1726,P17,Q183)
action is_in
entity Q1726
action intersection
action find_reverse
entity Q1906976
relation P17
action find_reverse
entity Q183
relation P17
['Q1726', 'P17', 'Q1906976'] ['Q1726', 'P17', 'Q183']
ASK WHERE { resource:Q1726 property:P17 resource:Q1906976 . resource:Q1726 property:P17 resource:Q183 }
Munich Tabanera de Valdavia Germany
action is_in
entity Munich
action intersection
action find_reverse
entity Tabanera de Valdavia
relation country
action find_reverse
entity Germany
relation country
['Munich', 'country', 'Tabanera de Valdavia'] ['Munich', 'country', 'Germany']
ASK WHERE { resource:Munich property:country resource:Tabanera_de_Valdavia . resource:Munich property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q1726,P17,Q1906976) (Q1726,P17,Q183)
action is_in
entity Q1726
action intersection
action find_reverse
entity Q1906976
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q1726', 'P17', 'Q1906976'] ['Q1726', 'P17', 'Q183']
ASK WHERE { resource:Q1726 property:P17 resource:Q1906976 . resource:Q1726 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity Munich
action intersection
action find_reverse
entity Tabanera de Valdavia
relation country
action find_reverse
entity Germany
relation country
['Munich', 'country', 'Tabanera de Valdavia'] ['Munich', 'country', 'Germany']
ASK WHERE { resource:Munich property:country resource:Tabanera_de_Valdavia . resource:Munich property:country resource:Germany }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1726
P159
Q43229
USER
Which organizations have headquarters located at that administrative territory ?
action filter_type
action find_reverse
entity Q1726
relation P159
type Q43229
SELECT DISTINCT ?r WHERE { ?r property:P159 resource:Q1726 . ?r rdf:type ontology:Q43229 }
Munich
action filter_type
action find_reverse
entity Munich
relation headquarters location
type organization
SELECT DISTINCT ?r WHERE { ?r property:headquarters_location resource:Munich . ?r rdf:type ontology:organization }
[]
organization
Q81230 Q35953 Q150437
SYSTEM
Siemens, MAN SE, Penta Investments Limited
Q1516677 Q5513639 Q259000 Q451526 Q322712 Q16534362 Q1486164 Q78459 Q7430045 Q4688630 Q5450952 Q479845 Q5188611 Q5533474 Q8073204 Q812213 Q477848 Q173339 Q20164822 Q322784 Q768501 Q2623679 Q171212 Q185691 Q7855893 Q302508 Q1368770 Q35953 Q126827 Q150437 Q666476 Q481464 Q1908856 Q17009744 Q2345671 Q1433460 Q682533 Q422497 Q1571714 Q1595419 Q1283357 Q320521 Q593874 Q278637 Q314790 Q14644751 Q2649121 Q2843199 Q819150 Q2648743 Q835487 Q2473072 Q16974244 Q1681708 Q1996533 Q3338642 Q455467 Q316636 Q6822539 Q21472027 Q6383715 Q3843040 Q2286374 Q1158033 Q2284316 Q1634142 Q21451563 Q323802 Q224554 Q1529957 Q319437 Q651946 Q980030 Q535517 Q256290 Q5308255 Q639440 Q469594 Q682435 Q164152 Q784898 Q874743 Q1386924 Q787066 Q18712365 Q704853 Q81230 Q899963 Q11207 Q830846 Q548825 Q17511644 Q662623 Q2220152 Q456402 Q1958943 Q28255 Q897437 Q7906738 Q1666244 Q189589 Q882871 Q13799874 Q21484379 Q2825507 Q1425607 Q647863 Q220189 Q2147902 Q764850 Q127305 Q166637 Q880718 Q809994 Q1415874 Q701642 Q2275630 Q292622 Q701237 Q1671060 Q312590 Q461257 Q268878 Q152106 Q600986 Q128929 Q2529126 Q7685873 Q326933 Q2654526 Q7294298 Q315339 Q812055 Q5121109 Q5281947 Q571907
action filter_type
action find_reverse
entity Q1726
relation P159
type Q43229
[ANSWERS] have headquarters located at that administrative territory
SELECT DISTINCT ?r WHERE { ?r property:P159 resource:Q1726 . ?r rdf:type ontology:Q43229 }
Sonoton GLOBOsapiens Münchner Verkehrs- und Tarifverbund Epcos Metzeler AutoScout24 Serviceplan Roland Berger Strategy Consultants Scanline VFX Drivenow Finsterwalder HAWE Hydraulik SE Crossgate AG Genomatix Zoche aero-diesel Bayerische Eisenbahngesellschaft Cirquent BMW M windeln.de Bankhaus Reuschel & Co. MorphoSys Ratzinger Foundation 118000 AG Celemony Turner Broadcasting System Germany Tenova Takraf SportA MAN SE ArsEdition Penta Investments Limited Nemetschek LoveFilm MATIS Group MCON GROUP Stern Stewart & Co Radio Arabella Qimonda Aktion Widerstand Hallhuber Heilmann & Littmann Edelsbrunner Automobile München Maurer Söhne Anton Schlüter München Bayerischer Rundfunk Rodenstock GmbH Becoacht.com Allianz Managed Operations & Services SE Amiando Krauss-Maffei Allgeier SE MCM (Modern Creation Munich) Udet-Flugzeugbau ADESS AG Mercateo NorCom Fritz Neumeyer AG Constructa Neoman Bus Metaio GmbH Sport Münzinger Keil Maffei Siltronic Dallmayr Siemens Enterprise Communications Hugendubel Sporthaus Schuster Wacker Neuson SE Tomorrow Focus Tele München Gruppe Kayser-Threde Noerr Ed Meier Wacker Chemie Knorr-Bremse Drom fragrances Siemens Mobile Hagemeyer IDEO Fujitsu Technology Solutions Büssing Elektroniksystem- und Logistik-GmbH FC Bayern München AG Spaten-Franziskaner-Bräu Jivala Gaggenau Hausgeräte Siemens Brau Holding International Arri Dyckerhoff & Widmann Linguatec GOVECS BenQ-Siemens Sana Clinics Münchner Verkehrsgesellschaft Münchner Bank cdv Software Entertainment Brainlab VEM Aktienbank Wellington Partners ZenithOptimedia Stadtwerke München Coriant Eurosport AECOM Schaltbau Group Mitropa HypoVereinsbank Rheinmetall MAN Military Vehicles Bain & Company Paulaner Brewery Munich Re TÜV SÜD Basic AG Hanns Seidel Foundation World Uyghur Congress Softlab AGO Flugzeugwerke Hypo Real Estate Siemens Financial Services Fujitsu Siemens Computers Giesecke & Devrient Nymphenburg Porcelain Manufactory BayernLB Escada SE MTU Aero Engines Viviènne model management Target Partners NEFF Railpool Rapp Motorenwerke Vogtlandbahn BayWa Cinterion Wireless Modules Discovery Networks Deutschland Rohde & Schwarz
Siemens, MAN SE and Penta Investments Limited have headquarters located at that administrative territory
Siemens MAN SE Penta Investments Limited
action filter_type
action find_reverse
entity Munich
relation headquarters location
type organization
SELECT DISTINCT ?r WHERE { ?r property:headquarters_location resource:Munich . ?r rdf:type ontology:organization }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P859
Q1183543 Q1190554
USER
How many devices and events had funding from that organization ?
(c(Q1183543),P859,Q81230) (c(Q1190554),P859,Q81230) (c(Q1183543),P859,Q81230) (c(Q1190554),P859,Q81230) (c(Q1183543),P859,Q35953) (c(Q1190554),P859,Q35953) (c(Q1183543),P859,Q150437) (c(Q1190554),P859,Q150437)
[{'concept': 'Q1183543'}, 'P859', 'Q81230'] [{'concept': 'Q1190554'}, 'P859', 'Q81230'] [{'concept': 'Q1183543'}, 'P859', 'Q81230'] [{'concept': 'Q1190554'}, 'P859', 'Q81230'] [{'concept': 'Q1183543'}, 'P859', 'Q35953'] [{'concept': 'Q1190554'}, 'P859', 'Q35953'] [{'concept': 'Q1183543'}, 'P859', 'Q150437'] [{'concept': 'Q1190554'}, 'P859', 'Q150437']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q152478 resource:Q16883318 } UNION { ?y property:Q152478 resource:Q16883318 } UNION { ?z property:Q152478 resource:Q16883318 } UNION { ?y property:Q152478 resource:Q16883318 } UNION { ?z property:Q152478 resource:Q35953 } UNION { ?y property:Q152478 resource:Q35953 } UNION { ?z property:Q152478 resource:Q150437 } UNION { ?y property:Q152478 resource:Q150437 } } . ?z rdf:type ontology:Q1183543 . ?y rdf:type ontology:Q5416694 }
[{'concept': 'device'}, 'sponsor', 'Siemens'] [{'concept': 'event'}, 'sponsor', 'Siemens'] [{'concept': 'device'}, 'sponsor', 'Siemens'] [{'concept': 'event'}, 'sponsor', 'Siemens'] [{'concept': 'device'}, 'sponsor', 'MAN SE'] [{'concept': 'event'}, 'sponsor', 'MAN SE'] [{'concept': 'device'}, 'sponsor', 'Penta Investments Limited'] [{'concept': 'event'}, 'sponsor', 'Penta Investments Limited']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sponsor resource:Siemens } UNION { ?y property:sponsor resource:Siemens } UNION { ?z property:sponsor resource:Siemens } UNION { ?y property:sponsor resource:Siemens } UNION { ?z property:sponsor resource:MAN_SE } UNION { ?y property:sponsor resource:MAN_SE } UNION { ?z property:sponsor resource:Penta_Investments_Limited } UNION { ?y property:sponsor resource:Penta_Investments_Limited } } . ?z rdf:type ontology:device . ?y rdf:type ontology:event }
[]
device event
Quantitative|Count|Mult. entity type|Clarification
Q35953
SYSTEM
Did you mean MAN SE ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q152478 resource:Q16883318 } UNION { ?y property:Q152478 resource:Q16883318 } UNION { ?z property:Q152478 resource:Q16883318 } UNION { ?y property:Q152478 resource:Q16883318 } UNION { ?z property:Q152478 resource:Q35953 } UNION { ?y property:Q152478 resource:Q35953 } UNION { ?z property:Q152478 resource:Q150437 } UNION { ?y property:Q152478 resource:Q150437 } } . ?z rdf:type ontology:Q1183543 . ?y rdf:type ontology:Q5416694 }
Did you mean MAN SE ?
MAN SE
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sponsor resource:Siemens } UNION { ?y property:sponsor resource:Siemens } UNION { ?z property:sponsor resource:Siemens } UNION { ?y property:sponsor resource:Siemens } UNION { ?z property:sponsor resource:MAN_SE } UNION { ?y property:sponsor resource:MAN_SE } UNION { ?z property:sponsor resource:Penta_Investments_Limited } UNION { ?y property:sponsor resource:Penta_Investments_Limited } } . ?z rdf:type ontology:device . ?y rdf:type ontology:event }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Siemens. Could you tell me the answer for that?
(c(Q1183543),P859,Q81230) (c(Q1190554),P859,Q81230) (c(Q1183543),P859,Q81230) (c(Q1190554),P859,Q81230) (c(Q1183543),P859,Q35953) (c(Q1190554),P859,Q35953) (c(Q1183543),P859,Q150437) (c(Q1190554),P859,Q150437)
Q81230
[{'concept': 'Q1183543'}, 'P859', 'Q81230'] [{'concept': 'Q1190554'}, 'P859', 'Q81230'] [{'concept': 'Q1183543'}, 'P859', 'Q81230'] [{'concept': 'Q1190554'}, 'P859', 'Q81230'] [{'concept': 'Q1183543'}, 'P859', 'Q35953'] [{'concept': 'Q1190554'}, 'P859', 'Q35953'] [{'concept': 'Q1183543'}, 'P859', 'Q150437'] [{'concept': 'Q1190554'}, 'P859', 'Q150437']
[{'concept': 'device'}, 'sponsor', 'Siemens'] [{'concept': 'event'}, 'sponsor', 'Siemens'] [{'concept': 'device'}, 'sponsor', 'Siemens'] [{'concept': 'event'}, 'sponsor', 'Siemens'] [{'concept': 'device'}, 'sponsor', 'MAN SE'] [{'concept': 'event'}, 'sponsor', 'MAN SE'] [{'concept': 'device'}, 'sponsor', 'Penta Investments Limited'] [{'concept': 'event'}, 'sponsor', 'Penta Investments Limited']
[]
SYSTEM
1 devices and 1 events
Q3148738 Q2916749
(c(Q1183543),P859,Q81230) (c(Q1190554),P859,Q81230) (c(Q1183543),P859,Q81230) (c(Q1190554),P859,Q81230) (c(Q1183543),P859,Q35953) (c(Q1190554),P859,Q35953) (c(Q1183543),P859,Q150437) (c(Q1190554),P859,Q150437)
[ANSWER]
[{'concept': 'Q1183543'}, 'P859', 'Q81230'] [{'concept': 'Q1190554'}, 'P859', 'Q81230'] [{'concept': 'Q1183543'}, 'P859', 'Q81230'] [{'concept': 'Q1190554'}, 'P859', 'Q81230'] [{'concept': 'Q1183543'}, 'P859', 'Q35953'] [{'concept': 'Q1190554'}, 'P859', 'Q35953'] [{'concept': 'Q1183543'}, 'P859', 'Q150437'] [{'concept': 'Q1190554'}, 'P859', 'Q150437']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q152478 resource:Q16883318 } UNION { ?y property:Q152478 resource:Q16883318 } UNION { ?z property:Q152478 resource:Q16883318 } UNION { ?y property:Q152478 resource:Q16883318 } UNION { ?z property:Q152478 resource:Q35953 } UNION { ?y property:Q152478 resource:Q35953 } UNION { ?z property:Q152478 resource:Q150437 } UNION { ?y property:Q152478 resource:Q150437 } } . ?z rdf:type ontology:Q1183543 . ?y rdf:type ontology:Q5416694 }
IllumiNations: Reflections of Earth Spaceship Earth
1 devices and 1 events
[{'concept': 'device'}, 'sponsor', 'Siemens'] [{'concept': 'event'}, 'sponsor', 'Siemens'] [{'concept': 'device'}, 'sponsor', 'Siemens'] [{'concept': 'event'}, 'sponsor', 'Siemens'] [{'concept': 'device'}, 'sponsor', 'MAN SE'] [{'concept': 'event'}, 'sponsor', 'MAN SE'] [{'concept': 'device'}, 'sponsor', 'Penta Investments Limited'] [{'concept': 'event'}, 'sponsor', 'Penta Investments Limited']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sponsor resource:Siemens } UNION { ?y property:sponsor resource:Siemens } UNION { ?z property:sponsor resource:Siemens } UNION { ?y property:sponsor resource:Siemens } UNION { ?z property:sponsor resource:MAN_SE } UNION { ?y property:sponsor resource:MAN_SE } UNION { ?z property:sponsor resource:Penta_Investments_Limited } UNION { ?y property:sponsor resource:Penta_Investments_Limited } } . ?z rdf:type ontology:device . ?y rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q81230
P740
Q56061
USER
Which location did Siemens orginate in ?
(Q81230,P740,c(Q56061))
action filter_type
action find
entity Q81230
relation P740
type Q56061
['Q81230', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q81230 property:P740 ?f . ?f rdf:type ontology:Q56061 }
Siemens
action filter_type
action find
entity Siemens
relation location of formation
type administrative territorial entity
['Siemens', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Siemens property:location_of_formation ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q81230,P740,c(Q56061))
action filter_type
action find
entity Q81230
relation P740
type Q56061
Siemens orginated by [ANSWER]
['Q81230', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q81230 property:P740 ?f . ?f rdf:type ontology:Q56061 }
Berlin
Siemens orginated by Berlin
Berlin
action filter_type
action find
entity Siemens
relation location of formation
type administrative territorial entity
['Siemens', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Siemens property:location_of_formation ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17080075
Q56061
USER
And also tell me about Made Men?
(Q17080075,P740,c(Q56061))
action filter_type
action find
entity Q17080075
relation P740
type Q56061
['Q17080075', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q17080075 property:P740 ?z . ?z rdf:type ontology:Q56061 }
Made Men
action filter_type
action find
entity Made Men
relation location of formation
type administrative territorial entity
['Made Men', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Made_Men property:location_of_formation ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q100
SYSTEM
Boston
Q100
(Q17080075,P740,c(Q56061))
action filter_type
action find
entity Q17080075
relation P740
type Q56061
[ANSWER]
['Q17080075', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q17080075 property:P740 ?z . ?z rdf:type ontology:Q56061 }
Boston
Boston
action filter_type
action find
entity Made Men
relation location of formation
type administrative territorial entity
['Made Men', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Made_Men property:location_of_formation ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P559
Q56061 Q83620 Q628179
USER
Which administrative territories are the endpoints for exactly 1 thoroughfares and trails ?
(c(Q83620)|c(Q628179),P559,c(Q56061))
action equal
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
value 1
[[{'concept': 'Q83620'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?s WHERE { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:Q83620 ) ( ontology:Q628179 ) } } GROUP BY ?s } . FILTER ( ?b = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
value 1
[[{'concept': 'thoroughfare'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?s WHERE { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:thoroughfare ) ( ontology:trail ) } } GROUP BY ?s } . FILTER ( ?b = 1 ) }
[]
administrative territorial entity thoroughfare trail
Q1085 Q649 Q956
SYSTEM
Prague, Moscow, Beijing
Q938820 Q9832 Q3112707 Q11851639 Q23436 Q837211 Q1017610 Q10084 Q7567083 Q723164 Q82490 Q23311 Q49550 Q38511 Q796625 Q130191 Q986100 Q6023 Q171357 Q956 Q959 Q727 Q649 Q211059 Q7986745 Q18808 Q671348 Q28327 Q4093 Q33959 Q586 Q987170 Q1017331 Q1763 Q1449 Q1757 Q36989 Q990112 Q1020951 Q40840 Q542966 Q257034 Q1571025 Q856860 Q517381 Q3992 Q1248150 Q1781385 Q369947 Q84 Q2132 Q2133814 Q7944369 Q184383 Q375905 Q263954 Q643160 Q6816 Q17872 Q129610 Q766594 Q466054 Q953081 Q180717 Q580016 Q244289 Q237253 Q485186 Q588417 Q146659 Q530309 Q865872 Q1085
(c(Q83620)|c(Q628179),P559,c(Q56061))
action equal
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
value 1
[ANSWERS] are the endpoints for exactly 1 thoroughfares and trails
[[{'concept': 'Q83620'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?s WHERE { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:Q83620 ) ( ontology:Q628179 ) } } GROUP BY ?s } . FILTER ( ?b = 1 ) }
Virrat Eindhoven Sedbury Annalankangas Edinburgh Scheveningen Horgoš Vlissingen South Drain Pop Lyme Regis City of London Maó-Mahón Turku Edale Norwich Ridder Lapua Kecskemét Beijing Vladivostok Amsterdam Moscow Jõhvi West Vale Pyongyang Worthing Örnsköldsvik Glasgow Nice Bonn Inčukalns Westport, County Mayo Murmansk Genoa Helsinki Pardubice Littlehampton Ilkley Tampere Angren, Uzbekistan Kemble Mullan Hammond Dillenburg Liège Wallsend Björkhagen El Cajon London Victoria St Nicholas-at-Wade Värpinge Zeebrugge Deerfield Afobaka Farnham Ulan-Ude Alice Springs Galway Bewdley Mahdia Orivesi Sousse Albina Athis-Mons Great Yarmouth Key West Sewell, Chile Clapham Karkkila Birstall Prague
Prague, Moscow and Beijing are the endpoints for exactly 1 thoroughfares and trails
Prague Moscow Beijing
action equal
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
value 1
[[{'concept': 'thoroughfare'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?s WHERE { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:thoroughfare ) ( ontology:trail ) } } GROUP BY ?s } . FILTER ( ?b = 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1085 Q649 Q956
P17
Q15617994
USER
Which administrative territories do those administrative territories belong to ?
(Q1085,P17,c(Q15617994)) (Q649,P17,c(Q15617994)) (Q956,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q1085', 'P17', {'concept': 'Q15617994'}] ['Q649', 'P17', {'concept': 'Q15617994'}] ['Q956', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . ?t property:P17 ?d . VALUES ( ?t ) { ( resource:Q938820 ) ( resource:Q9832 ) ( resource:Q3112707 ) } }
Prague Moscow Beijing
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Prague', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moscow', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Beijing', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:country ?d . VALUES ( ?t ) { ( resource:Virrat ) ( resource:Eindhoven ) ( resource:Sedbury ) } }
[]
designation for an administrative territorial entity
Q213 Q159 Q148
SYSTEM
Czech Republic, Russia, People's Republic of China
Q213 Q159 Q148
(Q1085,P17,c(Q15617994)) (Q649,P17,c(Q15617994)) (Q956,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those administrative territories belong to the [ANSWERS]
['Q1085', 'P17', {'concept': 'Q15617994'}] ['Q649', 'P17', {'concept': 'Q15617994'}] ['Q956', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . ?t property:P17 ?d . VALUES ( ?t ) { ( resource:Q938820 ) ( resource:Q9832 ) ( resource:Q3112707 ) } }
Czech Republic Russia People's Republic of China
Those administrative territories belong to the Czech Republic, Russia and People's Republic of China
Czech Republic Russia People's Republic of China
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Prague', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moscow', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Beijing', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:country ?d . VALUES ( ?t ) { ( resource:Virrat ) ( resource:Eindhoven ) ( resource:Sedbury ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q213 Q159 Q148
P17
Q1190554
USER
Which events are present in those administrative territories ?
(c(Q1190554),P17,Q213) (c(Q1190554),P17,Q159) (c(Q1190554),P17,Q148)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q1190554
[{'concept': 'Q1190554'}, 'P17', 'Q213'] [{'concept': 'Q1190554'}, 'P17', 'Q159'] [{'concept': 'Q1190554'}, 'P17', 'Q148']
SELECT DISTINCT ?f WHERE { VALUES ( ?l ) { ( resource:Q213 ) ( resource:Q159 ) ( resource:Q148 ) } . ?f property:P17 ?l . ?f rdf:type ontology:Q1190554 }
Czech Republic Russia People's Republic of China
action filter_type
action find_reverse
entity prev_answer
relation country
type event
[{'concept': 'event'}, 'country', 'Czech Republic'] [{'concept': 'event'}, 'country', 'Russia'] [{'concept': 'event'}, 'country', "People's Republic of China"]
SELECT DISTINCT ?f WHERE { VALUES ( ?l ) { ( resource:Czech_Republic ) ( resource:Russia ) ( resource:People's_Republic_of_China ) } . ?f property:country ?l . ?f rdf:type ontology:event }
[]
event
Q4373 Q241108 Q697059
SYSTEM
Battle of White Mountain, Battle of Friedland, Battle of Hong Kong
Q508088 Q4373 Q694061 Q241108 Q862099 Q697579 Q709346 Q254599 Q7443080 Q986637 Q21795379 Q2888438 Q6685200 Q697059 Q2038907 Q486531 Q2890719 Q717505 Q592550 Q20816071 Q384091 Q764177 Q709396 Q2890905 Q18412688
(c(Q1190554),P17,Q213) (c(Q1190554),P17,Q159) (c(Q1190554),P17,Q148)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q1190554
[ANSWERS] are present in those administrative territories
[{'concept': 'Q1190554'}, 'P17', 'Q213'] [{'concept': 'Q1190554'}, 'P17', 'Q159'] [{'concept': 'Q1190554'}, 'P17', 'Q148']
SELECT DISTINCT ?f WHERE { VALUES ( ?l ) { ( resource:Q213 ) ( resource:Q159 ) ( resource:Q148 ) } . ?f property:P17 ?l . ?f rdf:type ontology:Q1190554 }
Siege of Olomouc Battle of White Mountain Battle of Reichenberg Battle of Friedland 1993 Russian constitutional crisis Battle of Lake Khasan Battle of South Shanxi Battle of Shanghai Second Battle of Chuenpee Battle of Nanri Island 2015 Shenzhen landslide Battle of Dong-Yin Lotus Riverside Battle of Hong Kong Battle of Wuhan Battle of Unsan Battle of Yijiangshan Islands Battle of Xinkou British expedition to Tibet 2015 Tianjin explosions Battle of Mukden Battle of Wawon Battle of Pingxingguan Battle of the Samichon River 2009 World Inline Speed Skating Championships
Battle of White Mountain, Battle of Friedland and Battle of Hong Kong are present in those administrative territories
Battle of White Mountain Battle of Friedland Battle of Hong Kong
action filter_type
action find_reverse
entity prev_answer
relation country
type event
[{'concept': 'event'}, 'country', 'Czech Republic'] [{'concept': 'event'}, 'country', 'Russia'] [{'concept': 'event'}, 'country', "People's Republic of China"]
SELECT DISTINCT ?f WHERE { VALUES ( ?l ) { ( resource:Czech_Republic ) ( resource:Russia ) ( resource:People's_Republic_of_China ) } . ?f property:country ?l . ?f rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4373 Q241108 Q697059
P607
Q502895
USER
Which people did Battle of White Mountain, Battle of Friedland and Battle of Hong Kong fight in ?
(c(Q502895),P607,Q4373) (c(Q502895),P607,Q241108) (c(Q502895),P607,Q697059)
action union
action filter_type
action find_reverse
entity Q4373
relation P607
type Q502895
action filter_type
action find_reverse
entity Q241108
relation P607
type Q502895
action filter_type
action find_reverse
entity Q697059
relation P607
type Q502895
[{'concept': 'Q502895'}, 'P607', 'Q4373'] [{'concept': 'Q502895'}, 'P607', 'Q241108'] [{'concept': 'Q502895'}, 'P607', 'Q697059']
SELECT DISTINCT ?p WHERE { { ?p property:P607 resource:Q4373 . ?p rdf:type ontology:Q502895 } UNION { ?p rdf:type ontology:Q502895 . ?p property:P607 resource:Q241108 } }
Battle of White Mountain Battle of Friedland Battle of Hong Kong
action union
action filter_type
action find_reverse
entity Battle of White Mountain
relation conflict
type common name
action filter_type
action find_reverse
entity Battle of Friedland
relation conflict
type common name
action filter_type
action find_reverse
entity Battle of Hong Kong
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Battle of White Mountain'] [{'concept': 'common name'}, 'conflict', 'Battle of Friedland'] [{'concept': 'common name'}, 'conflict', 'Battle of Hong Kong']
SELECT DISTINCT ?p WHERE { { ?p property:conflict resource:Battle_of_White_Mountain . ?p rdf:type ontology:common_name } UNION { ?p rdf:type ontology:common_name . ?p property:conflict resource:Battle_of_Friedland } }
[]
common name
Q941947 Q3340333 Q2833653
SYSTEM
Marie Victor de Fay, marquis de Latour-Maubourg, Nicolas François Conroux, Alexandre, vicomte Digeon
Q61869 Q464258 Q2833653 Q3340333 Q15845501 Q2959139 Q941947 Q7364801 Q6137749 Q297013 Q6255134 Q5520627
(c(Q502895),P607,Q4373) (c(Q502895),P607,Q241108) (c(Q502895),P607,Q697059)
action union
action filter_type
action find_reverse
entity Q4373
relation P607
type Q502895
action filter_type
action find_reverse
entity Q241108
relation P607
type Q502895
action filter_type
action find_reverse
entity Q697059
relation P607
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P607', 'Q4373'] [{'concept': 'Q502895'}, 'P607', 'Q241108'] [{'concept': 'Q502895'}, 'P607', 'Q697059']
SELECT DISTINCT ?p WHERE { { ?p property:P607 resource:Q4373 . ?p rdf:type ontology:Q502895 } UNION { ?p rdf:type ontology:Q502895 . ?p property:P607 resource:Q241108 } }
Gottfried Heinrich Graf zu Pappenheim Johann Ludwig Hektor von Isolani Alexandre, vicomte Digeon Nicolas François Conroux André Adrien Joseph de La Bruyère Carel Frederik Krahmer de Bichin Marie Victor de Fay, marquis de Latour-Maubourg Ronald Douglas Maxwell Tadayoshi Sano Tadamichi Kuribayashi John Robert Osborn Gander
Marie Victor de Fay, marquis de Latour-Maubourg, Nicolas François Conroux and Alexandre, vicomte Digeon Battle of White Mountain, Battle of Friedland and Battle of Hong Kong fought in
Marie Victor de Fay, marquis de Latour-Maubourg Nicolas François Conroux Alexandre, vicomte Digeon
action union
action filter_type
action find_reverse
entity Battle of White Mountain
relation conflict
type common name
action filter_type
action find_reverse
entity Battle of Friedland
relation conflict
type common name
action filter_type
action find_reverse
entity Battle of Hong Kong
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Battle of White Mountain'] [{'concept': 'common name'}, 'conflict', 'Battle of Friedland'] [{'concept': 'common name'}, 'conflict', 'Battle of Hong Kong']
SELECT DISTINCT ?p WHERE { { ?p property:conflict resource:Battle_of_White_Mountain . ?p rdf:type ontology:common_name } UNION { ?p rdf:type ontology:common_name . ?p property:conflict resource:Battle_of_Friedland } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2833653
P39
Q12737077
USER
Which occupation was a position occupied by that person ?
(Q2833653,P39,c(Q12737077))
action filter_type
action find
entity Q2833653
relation P39
type Q12737077
['Q2833653', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q2833653 property:P39 ?p }
Alexandre, vicomte Digeon
action filter_type
action find
entity Alexandre, vicomte Digeon
relation position held
type occupation
['Alexandre, vicomte Digeon', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Alexandre,_vicomte_Digeon property:position_held ?p }
[]
occupation
Clarification for simple ques.
Q2833653
SYSTEM
Did you mean Alexandre, vicomte Digeon ?
Q941947 Q3340333 Q2833653
(Q941947,P39,c(Q12737077)) (Q3340333,P39,c(Q12737077)) (Q2833653,P39,c(Q12737077))
[ANSWER]
['Q941947', 'P39', {'concept': 'Q12737077'}] ['Q3340333', 'P39', {'concept': 'Q12737077'}] ['Q2833653', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q2833653 property:P39 ?p }
Marie Victor de Fay, marquis de Latour-Maubourg Nicolas François Conroux Alexandre, vicomte Digeon
Did you mean Alexandre, vicomte Digeon ?
Alexandre, vicomte Digeon
['Marie Victor de Fay, marquis de Latour-Maubourg', 'position held', {'concept': 'occupation'}] ['Nicolas François Conroux', 'position held', {'concept': 'occupation'}] ['Alexandre, vicomte Digeon', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Alexandre,_vicomte_Digeon property:position_held ?p }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2833653,P39,c(Q12737077))
['Q2833653', 'P39', {'concept': 'Q12737077'}]
['Alexandre, vicomte Digeon', 'position held', {'concept': 'occupation'}]
[]
Q21032621
SYSTEM
Pair of France
Q21032621
(Q2833653,P39,c(Q12737077))
action filter_type
action find
entity Q2833653
relation P39
type Q12737077
France [ANSWER] was a position occupied by that person
['Q2833653', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q2833653 property:P39 ?p }
Pair of France
France Pair of France was a position occupied by that person
Pair of France
action filter_type
action find
entity Alexandre, vicomte Digeon
relation position held
type occupation
['Alexandre, vicomte Digeon', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Alexandre,_vicomte_Digeon property:position_held ?p }
[]