Simple Question (Direct)
Simple Question
Q502052
P21
Q290
USER
Which sex does Andrei Glanzmann belong to ?
(Q502052,P21,c(Q290))
action filter_type
action find
entity Q502052
relation P21
type Q290
['Q502052', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q502052 property:P21 ?f . ?f rdf:type ontology:Q290 }
Andrei Glanzmann
action filter_type
action find
entity Andrei Glanzmann
relation gender
type sex
['Andrei Glanzmann', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Andrei_Glanzmann property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q502052,P21,c(Q290))
action filter_type
action find
entity Q502052
relation P21
type Q290
Andrei Glanzmann belongs to [ANSWER]
['Q502052', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q502052 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
Andrei Glanzmann belongs to male
male
action filter_type
action find
entity Andrei Glanzmann
relation gender
type sex
['Andrei Glanzmann', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Andrei_Glanzmann property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q502052
P27
Q15617994
USER
Which administrative territory is Andrei Glanzmann an inhabitant of ?
(Q502052,P27,c(Q15617994))
action filter_type
action find
entity Q502052
relation P27
type Q15617994
['Q502052', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q502052 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Andrei Glanzmann
action filter_type
action find
entity Andrei Glanzmann
relation country of citizenship
type designation for an administrative territorial entity
['Andrei Glanzmann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Andrei_Glanzmann property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218
SYSTEM
Romania
Q218
(Q502052,P27,c(Q15617994))
action filter_type
action find
entity Q502052
relation P27
type Q15617994
[ANSWER] is Andrei Glanzmann an inhabitant of
['Q502052', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q502052 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Romania
Romania is Andrei Glanzmann an inhabitant of
Romania
action filter_type
action find
entity Andrei Glanzmann
relation country of citizenship
type designation for an administrative territorial entity
['Andrei Glanzmann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Andrei_Glanzmann property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15544954
Q15617994
USER
And also tell me about Peter S. Prescott?
(Q15544954,P27,c(Q15617994))
action filter_type
action find
entity Q15544954
relation P27
type Q15617994
['Q15544954', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q15544954 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Peter S. Prescott
action filter_type
action find
entity Peter S. Prescott
relation country of citizenship
type designation for an administrative territorial entity
['Peter S. Prescott', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Peter_S._Prescott property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q15544954,P27,c(Q15617994))
action filter_type
action find
entity Q15544954
relation P27
type Q15617994
[ANSWER]
['Q15544954', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q15544954 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Peter S. Prescott
relation country of citizenship
type designation for an administrative territorial entity
['Peter S. Prescott', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Peter_S._Prescott property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15544954
P106
Q12737077
USER
What does that person do for a living ?
(Q30,P106,c(Q12737077))
action filter_type
action find
entity Q15544954
relation P106
type Q12737077
['Q30', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q15544954 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Peter S. Prescott
action filter_type
action find
entity Peter S. Prescott
relation occupation
type occupation
['United States of America', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Peter_S._Prescott property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q4263842
SYSTEM
literary critic
Q4263842
(Q30,P106,c(Q12737077))
action filter_type
action find
entity Q15544954
relation P106
type Q12737077
That person does a [ANSWER] for a living
['Q30', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q15544954 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
literary critic
That person does a literary critic for a living
literary critic
action filter_type
action find
entity Peter S. Prescott
relation occupation
type occupation
['United States of America', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Peter_S._Prescott property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q4263842 Q129458
P106
Q502895
USER
Does François-Georges Dreyfus have a job as that occupation ?
(Q129458,P106,Q4263842)
action is_in
entity Q129458
action find
entity Q4263842
relation P106
['Q129458', 'P106', 'Q4263842']
ASK WHERE { resource:Q4263842 property:P106 resource:Q129458 }
literary critic François-Georges Dreyfus
action is_in
entity François-Georges Dreyfus
action find
entity literary critic
relation occupation
['François-Georges Dreyfus', 'occupation', 'literary critic']
ASK WHERE { resource:literary_critic property:occupation resource:François-Georges_Dreyfus }
[]
common name
SYSTEM
NO
(Q129458,P106,Q4263842)
action is_in
entity Q129458
action find
entity Q4263842
relation P106
[ANSWER]
['Q129458', 'P106', 'Q4263842']
ASK WHERE { resource:Q4263842 property:P106 resource:Q129458 }
No
action is_in
entity François-Georges Dreyfus
action find
entity literary critic
relation occupation
['François-Georges Dreyfus', 'occupation', 'literary critic']
ASK WHERE { resource:literary_critic property:occupation resource:François-Georges_Dreyfus }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q218
P172
Q502895
USER
Who has Romania as his/her race ?
(c(Q502895),P172,Q218)
action filter_type
action find_reverse
entity Q218
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q218']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P172 resource:Q218 }
Romania
action filter_type
action find_reverse
entity Romania
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Romania']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:ethnic_group resource:Romania }
[]
common name
Q1336281
SYSTEM
Emil Hurezeanu
Q1336281
(c(Q502895),P172,Q218)
action filter_type
action find_reverse
entity Q218
relation P172
type Q502895
[ANSWER] has Romania as his/her race
[{'concept': 'Q502895'}, 'P172', 'Q218']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P172 resource:Q218 }
Emil Hurezeanu
Emil Hurezeanu has Romania as his/her race
Emil Hurezeanu
action filter_type
action find_reverse
entity Romania
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Romania']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:ethnic_group resource:Romania }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q218
P47
Q15617994
USER
Which administrative territories share border with that one ?
(c(Q15617994),P47,Q1336281)
action filter_type
action find
entity Q218
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q1336281']
SELECT DISTINCT ?d WHERE { resource:Q218 property:P47 ?d . ?d rdf:type ontology:Q15617994 }
Romania
action filter_type
action find
entity Romania
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Emil Hurezeanu']
SELECT DISTINCT ?d WHERE { resource:Romania property:shares_border_with ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36 Q212 Q28
SYSTEM
Poland, Ukraine, Hungary
Q212 Q217 Q219 Q28 Q36 Q403
(c(Q15617994),P47,Q1336281)
action filter_type
action find
entity Q218
relation P47
type Q15617994
[ANSWERS] share border with that one
[{'concept': 'Q15617994'}, 'P47', 'Q1336281']
SELECT DISTINCT ?d WHERE { resource:Q218 property:P47 ?d . ?d rdf:type ontology:Q15617994 }
Ukraine Republic of Moldova Bulgaria Hungary Poland Serbia
Poland, Ukraine and Hungary share border with that one
Poland Ukraine Hungary
action filter_type
action find
entity Romania
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Emil Hurezeanu']
SELECT DISTINCT ?d WHERE { resource:Romania property:shares_border_with ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q361296
P27
Q502895
USER
Are Adolf Ivan Dobrjanský a native of those administrative territories ?
(Q361296,P27,Q36) (Q361296,P27,Q212) (Q361296,P27,Q28)
action is_in
entity prev_answer
action find
entity Q361296
relation P27
['Q361296', 'P27', 'Q36'] ['Q361296', 'P27', 'Q212'] ['Q361296', 'P27', 'Q28']
ASK WHERE { VALUES ( ?u ) { ( resource:Q212 ) ( resource:Q217 ) ( resource:Q219 ) } . resource:Q361296 property:P27 ?u }
Adolf Ivan Dobrjanský
action is_in
entity prev_answer
action find
entity Adolf Ivan Dobrjanský
relation country of citizenship
['Adolf Ivan Dobrjanský', 'country of citizenship', 'Poland'] ['Adolf Ivan Dobrjanský', 'country of citizenship', 'Ukraine'] ['Adolf Ivan Dobrjanský', 'country of citizenship', 'Hungary']
ASK WHERE { VALUES ( ?u ) { ( resource:Ukraine ) ( resource:Republic_of_Moldova ) ( resource:Bulgaria ) } . resource:Adolf_Ivan_Dobrjanský property:country_of_citizenship ?u }
[]
common name
SYSTEM
YES
(Q361296,P27,Q36) (Q361296,P27,Q212) (Q361296,P27,Q28)
action is_in
entity prev_answer
action find
entity Q361296
relation P27
[ANSWER]
['Q361296', 'P27', 'Q36'] ['Q361296', 'P27', 'Q212'] ['Q361296', 'P27', 'Q28']
ASK WHERE { VALUES ( ?u ) { ( resource:Q212 ) ( resource:Q217 ) ( resource:Q219 ) } . resource:Q361296 property:P27 ?u }
Yes
action is_in
entity prev_answer
action find
entity Adolf Ivan Dobrjanský
relation country of citizenship
['Adolf Ivan Dobrjanský', 'country of citizenship', 'Poland'] ['Adolf Ivan Dobrjanský', 'country of citizenship', 'Ukraine'] ['Adolf Ivan Dobrjanský', 'country of citizenship', 'Hungary']
ASK WHERE { VALUES ( ?u ) { ( resource:Ukraine ) ( resource:Republic_of_Moldova ) ( resource:Bulgaria ) } . resource:Adolf_Ivan_Dobrjanský property:country_of_citizenship ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P17
Q15617994
USER
Which administrative territory does Poland belong to ?
(Q36,P17,c(Q15617994))
action filter_type
action find
entity Q36
relation P17
type Q15617994
['Q36', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q36 property:P17 ?l }
Poland
action filter_type
action find
entity Poland
relation country
type designation for an administrative territorial entity
['Poland', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Poland property:country ?l }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q36,P17,c(Q15617994))
action filter_type
action find
entity Q36
relation P17
type Q15617994
[ANSWER] belongs to [ANSWER]
['Q36', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q36 property:P17 ?l }
Poland
Poland belongs to Poland
Poland
action filter_type
action find
entity Poland
relation country
type designation for an administrative territorial entity
['Poland', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Poland property:country ?l }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36 Q17012
P1001
Q14660
USER
How many flags preside the jurisdiction over Poland or Guadeloupe ?
(c(Q14660),P1001,Q36) (c(Q14660),P1001,Q17012)
action count
action union
action filter_type
action find_reverse
entity Q36
relation P1001
type Q14660
action filter_type
action find_reverse
entity Q17012
relation P1001
type Q14660
[{'concept': 'Q14660'}, 'P1001', 'Q36'] [{'concept': 'Q14660'}, 'P1001', 'Q17012']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:P1001 resource:Q36 . ?z rdf:type ontology:Q14660 } UNION { ?z property:P1001 resource:Q17012 . ?z rdf:type ontology:Q14660 } }
Poland Guadeloupe
action count
action union
action filter_type
action find_reverse
entity Poland
relation applies to jurisdiction
type flag
action filter_type
action find_reverse
entity Guadeloupe
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Poland'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Guadeloupe']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:applies_to_jurisdiction resource:Poland . ?z rdf:type ontology:flag } UNION { ?z property:applies_to_jurisdiction resource:Guadeloupe . ?z rdf:type ontology:flag } }
[]
flag
SYSTEM
2
Q42436 Q390593
(c(Q14660),P1001,Q36) (c(Q14660),P1001,Q17012)
action count
action union
action filter_type
action find_reverse
entity Q36
relation P1001
type Q14660
action filter_type
action find_reverse
entity Q17012
relation P1001
type Q14660
[ANSWER]
[{'concept': 'Q14660'}, 'P1001', 'Q36'] [{'concept': 'Q14660'}, 'P1001', 'Q17012']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:P1001 resource:Q36 . ?z rdf:type ontology:Q14660 } UNION { ?z property:P1001 resource:Q17012 . ?z rdf:type ontology:Q14660 } }
Flag of Poland Flag of Guadeloupe
2
action count
action union
action filter_type
action find_reverse
entity Poland
relation applies to jurisdiction
type flag
action filter_type
action find_reverse
entity Guadeloupe
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Poland'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Guadeloupe']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:applies_to_jurisdiction resource:Poland . ?z rdf:type ontology:flag } UNION { ?z property:applies_to_jurisdiction resource:Guadeloupe . ?z rdf:type ontology:flag } }
[]