Simple Question (Direct)
Simple Question
Q844366
P161
Q502895
USER
Which people were casted in 2 Young ?
(Q844366,P161,c(Q502895))
action filter_type
action find
entity Q844366
relation P161
type Q502895
['Q844366', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q844366 property:P161 ?f . ?f rdf:type ontology:Q502895 }
2 Young
action filter_type
action find
entity 2 Young
relation cast member
type common name
['2 Young', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:2_Young property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
common name
Q445608 Q561310 Q704140
SYSTEM
Eric Tsang, Jaycee Chan, David Chiang
Q561310 Q704140 Q1059801 Q381561 Q3272513 Q701940 Q445608
(Q844366,P161,c(Q502895))
action filter_type
action find
entity Q844366
relation P161
type Q502895
As [ANSWERS] were casted in 2 Young
['Q844366', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q844366 property:P161 ?f . ?f rdf:type ontology:Q502895 }
Jaycee Chan David Chiang Benz Hui Anthony Wong Fiona Sit Lam Suet Eric Tsang
As Eric Tsang, Jaycee Chan and David Chiang were casted in 2 Young
Eric Tsang Jaycee Chan David Chiang
action filter_type
action find
entity 2 Young
relation cast member
type common name
['2 Young', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:2_Young property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q844366
P136
Q1792379
USER
What can be considered as category for 2 Young ?
(Q844366,P136,c(Q1792379))
action filter_type
action find
entity Q844366
relation P136
type Q1792379
['Q844366', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?b WHERE { resource:Q844366 property:P136 ?b . ?b rdf:type ontology:Q1792379 }
2 Young
action filter_type
action find
entity 2 Young
relation genre
type art genre
['2 Young', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?b WHERE { resource:2_Young property:genre ?b . ?b rdf:type ontology:art_genre }
[]
art genre
Q1146335
SYSTEM
teen film
Q1146335
(Q844366,P136,c(Q1792379))
action filter_type
action find
entity Q844366
relation P136
type Q1792379
[ANSWER] can be considered as category for 2 Young
['Q844366', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?b WHERE { resource:Q844366 property:P136 ?b . ?b rdf:type ontology:Q1792379 }
teen film
Teen film can be considered as category for 2 Young
teen film
action filter_type
action find
entity 2 Young
relation genre
type art genre
['2 Young', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?b WHERE { resource:2_Young property:genre ?b . ?b rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q844366
P57
Q502895
USER
Who directed 2 Young ?
(Q844366,P57,c(Q502895))
action filter_type
action find
entity Q844366
relation P57
type Q502895
['Q844366', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q844366 property:P57 ?p . ?p rdf:type ontology:Q502895 }
2 Young
action filter_type
action find
entity 2 Young
relation director
type common name
['2 Young', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:2_Young property:director ?p . ?p rdf:type ontology:common_name }
[]
common name
Q960141
SYSTEM
Derek Yee
Q960141
(Q844366,P57,c(Q502895))
action filter_type
action find
entity Q844366
relation P57
type Q502895
1 [ANSWER] directed 2 Young
['Q844366', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q844366 property:P57 ?p . ?p rdf:type ontology:Q502895 }
Derek Yee
1 Derek Yee directed 2 Young
Derek Yee
action filter_type
action find
entity 2 Young
relation director
type common name
['2 Young', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:2_Young property:director ?p . ?p rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q960141 Q148
P27
Q15617994
USER
Is People's Republic of China the country of citizenship of Derek Yee ?
(Q960141,P27,Q148)
action is_in
entity Q148
action find
entity Q960141
relation P27
['Q960141', 'P27', 'Q148']
ASK WHERE { resource:Q960141 property:P27 resource:Q148 }
Derek Yee People's Republic of China
action is_in
entity People's Republic of China
action find
entity Derek Yee
relation country of citizenship
['Derek Yee', 'country of citizenship', "People's Republic of China"]
ASK WHERE { resource:Derek_Yee property:country_of_citizenship resource:People's_Republic_of_China }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q960141,P27,Q148)
action is_in
entity Q148
action find
entity Q960141
relation P27
[ANSWER]
['Q960141', 'P27', 'Q148']
ASK WHERE { resource:Q960141 property:P27 resource:Q148 }
Yes
action is_in
entity People's Republic of China
action find
entity Derek Yee
relation country of citizenship
['Derek Yee', 'country of citizenship', "People's Republic of China"]
ASK WHERE { resource:Derek_Yee property:country_of_citizenship resource:People's_Republic_of_China }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q561310 Q5154783
P27
Q15617994
USER
Is Jaycee Chan a civilian of Community High School District 99 ?
(Q561310,P27,Q5154783)
action is_in
entity Q5154783
action find
entity Q561310
relation P27
['Q561310', 'P27', 'Q5154783']
ASK WHERE { resource:Q561310 property:P27 resource:Q5154783 }
Jaycee Chan Community High School District 99
action is_in
entity Community High School District 99
action find
entity Jaycee Chan
relation country of citizenship
['Jaycee Chan', 'country of citizenship', 'Community High School District 99']
ASK WHERE { resource:Jaycee_Chan property:country_of_citizenship resource:Community_High_School_District_99 }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q561310,P27,Q5154783)
action is_in
entity Q5154783
action find
entity Q561310
relation P27
[ANSWER]
['Q561310', 'P27', 'Q5154783']
ASK WHERE { resource:Q561310 property:P27 resource:Q5154783 }
No
action is_in
entity Community High School District 99
action find
entity Jaycee Chan
relation country of citizenship
['Jaycee Chan', 'country of citizenship', 'Community High School District 99']
ASK WHERE { resource:Jaycee_Chan property:country_of_citizenship resource:Community_High_School_District_99 }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q838948 Q2342494 Q234460
USER
Which works of art are approximately 1 collectables or texts a component of ?
(c(Q2342494)|c(Q234460),P361,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q838948
type Q234460
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q234460'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) ?w WHERE { { ?b property:P361 ?w . ?w rdf:type ontology:Q838948 . ?b rdf:type ontology:Q234460 } UNION { ?b property:P361 ?w . ?w rdf:type ontology:Q838948 . ?b rdf:type ontology:Q2342494 } } GROUP BY ?w } }
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type collectable
action find_reverse_tuple_counts
relation part of
type work of art
type text
value 1
[[{'concept': 'collectable'}, {'concept': 'text'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) ?w WHERE { { ?b property:part_of ?w . ?w rdf:type ontology:work_of_art . ?b rdf:type ontology:text } UNION { ?b property:part_of ?w . ?w rdf:type ontology:work_of_art . ?b rdf:type ontology:collectable } } GROUP BY ?w } }
[]
work of art collectable text
Q1195466 Q41567 Q1297233
SYSTEM
The Man on the Roof, Hamlet, Ferdinand the Bull
Q22260775 Q206400 Q215750 Q1195466 Q41567 Q1297233
(c(Q2342494)|c(Q234460),P361,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q838948
type Q234460
value 1
[ANSWERS] are approximately 1 collectables or texts a component of
[[{'concept': 'Q2342494'}, {'concept': 'Q234460'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) ?w WHERE { { ?b property:P361 ?w . ?w rdf:type ontology:Q838948 . ?b rdf:type ontology:Q234460 } UNION { ?b property:P361 ?w . ?w rdf:type ontology:Q838948 . ?b rdf:type ontology:Q2342494 } } GROUP BY ?w } }
Sonar Kella The Merchant of Venice Julius Caesar The Man on the Roof Hamlet Ferdinand the Bull
The Man on the Roof, Hamlet and Ferdinand the Bull are approximately 1 collectables or texts a component of
The Man on the Roof Hamlet Ferdinand the Bull
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type collectable
action find_reverse_tuple_counts
relation part of
type work of art
type text
value 1
[[{'concept': 'collectable'}, {'concept': 'text'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) ?w WHERE { { ?b property:part_of ?w . ?w rdf:type ontology:work_of_art . ?b rdf:type ontology:text } UNION { ?b property:part_of ?w . ?w rdf:type ontology:work_of_art . ?b rdf:type ontology:collectable } } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19015593 Q704140
P276 P19
Q56061
USER
Which administrative territories are the places of birth of David Chiang or are the locations of Dorsweg ?
OR((Q704140,P19,c(Q56061)), (Q19015593,P276,c(Q56061)))
action filter_type
action union
action find
entity Q704140
relation P19
action find
entity Q19015593
relation P276
type Q56061
{'OR': [['Q704140', 'P19', {'concept': 'Q56061'}], ['Q19015593', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q704140 property:P19 ?h } UNION { resource:Q19015593 property:P276 ?h } } . ?h rdf:type ontology:Q56061 }
Dorsweg David Chiang
action filter_type
action union
action find
entity David Chiang
relation place of birth
action find
entity Dorsweg
relation location
type administrative territorial entity
{'OR': [['David Chiang', 'place of birth', {'concept': 'administrative territorial entity'}], ['Dorsweg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:David_Chiang property:place_of_birth ?h } UNION { resource:Dorsweg property:location ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8686 Q2059810
SYSTEM
Shanghai, Lemele
Q8686 Q2059810
OR((Q704140,P19,c(Q56061)), (Q19015593,P276,c(Q56061)))
action filter_type
action union
action find
entity Q704140
relation P19
action find
entity Q19015593
relation P276
type Q56061
[ANSWERS] are the places of birth of David Chiang or are the locations of Dorsweg
{'OR': [['Q704140', 'P19', {'concept': 'Q56061'}], ['Q19015593', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q704140 property:P19 ?h } UNION { resource:Q19015593 property:P276 ?h } } . ?h rdf:type ontology:Q56061 }
Shanghai Lemele
Shanghai and Lemele are the places of birth of David Chiang or are the locations of Dorsweg
Shanghai Lemele
action filter_type
action union
action find
entity David Chiang
relation place of birth
action find
entity Dorsweg
relation location
type administrative territorial entity
{'OR': [['David Chiang', 'place of birth', {'concept': 'administrative territorial entity'}], ['Dorsweg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:David_Chiang property:place_of_birth ?h } UNION { resource:Dorsweg property:location ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q445608
P106
Q28640 Q12737077
USER
How many professions or occupations do Eric Tsang do for a living ?
(Q445608,P106,c(Q28640)) (Q445608,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q445608
relation P106
type Q28640
action filter_type
action find
entity Q445608
relation P106
type Q12737077
['Q445608', 'P106', {'concept': 'Q28640'}] ['Q445608', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { resource:Q445608 property:P106 ?o . ?o rdf:type ontology:Q28640 } UNION { resource:Q445608 property:P106 ?o . ?o rdf:type ontology:Q12737077 } }
Eric Tsang
action count
action union
action filter_type
action find
entity Eric Tsang
relation occupation
type profession
action filter_type
action find
entity Eric Tsang
relation occupation
type occupation
['Eric Tsang', 'occupation', {'concept': 'profession'}] ['Eric Tsang', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { resource:Eric_Tsang property:occupation ?o . ?o rdf:type ontology:profession } UNION { resource:Eric_Tsang property:occupation ?o . ?o rdf:type ontology:occupation } }
[]
profession occupation
SYSTEM
2
Q2526255 Q33999
(Q445608,P106,c(Q28640)) (Q445608,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q445608
relation P106
type Q28640
action filter_type
action find
entity Q445608
relation P106
type Q12737077
[ANSWER]
['Q445608', 'P106', {'concept': 'Q28640'}] ['Q445608', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { resource:Q445608 property:P106 ?o . ?o rdf:type ontology:Q28640 } UNION { resource:Q445608 property:P106 ?o . ?o rdf:type ontology:Q12737077 } }
film director actor
2
action count
action union
action filter_type
action find
entity Eric Tsang
relation occupation
type profession
action filter_type
action find
entity Eric Tsang
relation occupation
type occupation
['Eric Tsang', 'occupation', {'concept': 'profession'}] ['Eric Tsang', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { resource:Eric_Tsang property:occupation ?o . ?o rdf:type ontology:profession } UNION { resource:Eric_Tsang property:occupation ?o . ?o rdf:type ontology:occupation } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q8686
P190
Q56061
USER
How many administrative territories are sister towns of Shanghai ?
(Q8686,P190,c(Q56061))
action count
action filter_type
action find
entity Q8686
relation P190
type Q56061
['Q8686', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Q8686 property:P190 ?n . ?n rdf:type ontology:Q56061 }
Shanghai
action count
action filter_type
action find
entity Shanghai
relation sister city
type administrative territorial entity
['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Shanghai property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
40
Q12892 Q3889 Q648 Q1861 Q35381 Q52535 Q24826 Q1297 Q1850 Q269 Q13580 Q36433 Q340 Q597491 Q109356 Q84 Q78 Q133073 Q49227 Q41621 Q37806 Q47034 Q612 Q585 Q43509 Q87 Q58976 Q34370 Q3856 Q406 Q34713 Q174 Q490 Q36647 Q33986 Q131694 Q1492 Q23311 Q959 Q62
(Q8686,P190,c(Q56061))
action count
action filter_type
action find
entity Q8686
relation P190
type Q56061
[ANSWER]
['Q8686', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Q8686 property:P190 ?n . ?n rdf:type ontology:Q56061 }
Antwerp Maputo Lille Bangkok Colombo Rosario Liverpool Chicago Phnom Penh Tashkent Metro Manila Porto Montreal Okahandja Hamhung London Basel Dunedin Winston-Salem Haifa Port Vila Espoo Dubai Oslo Guayaquil Alexandria Piraeus Rotterdam Nicosia Istanbul Salzburg São Paulo Milan Cork Valparaíso Aden Barcelona City of London Vladivostok San Francisco
40
action count
action filter_type
action find
entity Shanghai
relation sister city
type administrative territorial entity
['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Shanghai property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q6869
Q56061
USER
And what about Heidenheim an der Brenz?
(Q6869,P190,c(Q56061))
action count
action filter_type
action find
entity Q6869
relation P190
type Q56061
['Q6869', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { resource:Q6869 property:P190 ?h . ?h rdf:type ontology:Q56061 }
Heidenheim an der Brenz
action count
action filter_type
action find
entity Heidenheim an der Brenz
relation sister city
type administrative territorial entity
['Heidenheim an der Brenz', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { resource:Heidenheim_an_der_Brenz property:sister_city ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q6869,P190,c(Q56061))
action count
action filter_type
action find
entity Q6869
relation P190
type Q56061
[ANSWER]
['Q6869', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { resource:Q6869 property:P190 ?h . ?h rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Heidenheim an der Brenz
relation sister city
type administrative territorial entity
['Heidenheim an der Brenz', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { resource:Heidenheim_an_der_Brenz property:sister_city ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6869
P937
Q502895
USER
Who have that administrative territory as their work location ?
action filter_type
action find_reverse
entity Q6869
relation P937
type Q502895
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P937 resource:Q6869 }
Heidenheim an der Brenz
action filter_type
action find_reverse
entity Heidenheim an der Brenz
relation work location
type common name
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:work_location resource:Heidenheim_an_der_Brenz }
[]
common name
Q500823 Q1335840 Q99347
SYSTEM
Andreas Stoch, Emil Bems, Hellmut G. Haasis
Q500823 Q15815359 Q99347 Q2173419 Q1082025 Q1335840 Q1517855 Q16318958 Q2173718 Q1633292 Q1462664
action filter_type
action find_reverse
entity Q6869
relation P937
type Q502895
[ANSWERS] have that administrative territory as their work location
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P937 resource:Q6869 }
Andreas Stoch Hermann Mohn Hellmut G. Haasis Rudolf Meier Christian Storz Emil Bems Walter Sauer Erich Herter Rudolf August Friedrich Schieber Hubert Lienhard Friedrich Voith
Andreas Stoch, Emil Bems and Hellmut G. Haasis have that administrative territory as their work location
Andreas Stoch Emil Bems Hellmut G. Haasis
action filter_type
action find_reverse
entity Heidenheim an der Brenz
relation work location
type common name
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:work_location resource:Heidenheim_an_der_Brenz }
[]