Simple Question (Direct)
Simple Question
Q17385702
P19
Q1048835
USER
Where was Iván Calero born ?
(Q17385702,P19,c(Q1048835))
action filter_type
action find
entity Q17385702
relation P19
type Q1048835
['Q17385702', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q17385702 property:P19 ?i . ?i rdf:type ontology:Q1048835 }
Iván Calero
action filter_type
action find
entity Iván Calero
relation place of birth
type political territorial entity
['Iván Calero', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Iván_Calero property:place_of_birth ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q824651
SYSTEM
Parla
Q824651
(Q17385702,P19,c(Q1048835))
action filter_type
action find
entity Q17385702
relation P19
type Q1048835
Iván Calero was born in [ANSWER]
['Q17385702', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q17385702 property:P19 ?i . ?i rdf:type ontology:Q1048835 }
Parla
Iván Calero was born in Parla
Parla
action filter_type
action find
entity Iván Calero
relation place of birth
type political territorial entity
['Iván Calero', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Iván_Calero property:place_of_birth ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q824651
P1313
Q12737077
USER
Which occupation is fulfilled by that political territory ?
(Q824651,P1313,c(Q12737077))
action filter_type
action find
entity Q824651
relation P1313
type Q12737077
['Q824651', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q824651 property:P1313 ?x }
Parla
action filter_type
action find
entity Parla
relation office held by head of government
type occupation
['Parla', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Parla property:office_held_by_head_of_government ?x }
[]
occupation
Q26700655
SYSTEM
mayor of Parla
Q26700655
(Q824651,P1313,c(Q12737077))
action filter_type
action find
entity Q824651
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that political territory
['Q824651', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q824651 property:P1313 ?x }
mayor of Parla
The mayor of Parla is fulfilled by that political territory
mayor of Parla
action filter_type
action find
entity Parla
relation office held by head of government
type occupation
['Parla', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Parla property:office_held_by_head_of_government ?x }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q26700655 Q6318101
P1313
Q1048835
USER
Does San Cristóbal District have that occupation as title of head of government ?
(Q6318101,P1313,Q26700655)
action is_in
entity Q6318101
action find
entity Q26700655
relation P1313
['Q6318101', 'P1313', 'Q26700655']
ASK WHERE { resource:Q26700655 property:P1313 resource:Q6318101 }
mayor of Parla San Cristóbal District
action is_in
entity San Cristóbal District
action find
entity mayor of Parla
relation office held by head of government
['San Cristóbal District', 'office held by head of government', 'mayor of Parla']
ASK WHERE { resource:mayor_of_Parla property:office_held_by_head_of_government resource:San_Cristóbal_District }
[]
political territorial entity
SYSTEM
NO
(Q6318101,P1313,Q26700655)
action is_in
entity Q6318101
action find
entity Q26700655
relation P1313
[ANSWER]
['Q6318101', 'P1313', 'Q26700655']
ASK WHERE { resource:Q26700655 property:P1313 resource:Q6318101 }
No
action is_in
entity San Cristóbal District
action find
entity mayor of Parla
relation office held by head of government
['San Cristóbal District', 'office held by head of government', 'mayor of Parla']
ASK WHERE { resource:mayor_of_Parla property:office_held_by_head_of_government resource:San_Cristóbal_District }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q732577 Q838948
USER
Which occupations were the main subjects in the work approximately 29 publications and works of art ?
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 29
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) ?x WHERE { { ?x rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q732577 . ?h property:P921 ?x } UNION { ?h property:P921 ?x . ?x rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q838948 } } GROUP BY ?x } . FILTER ( ?y = 29 ) }
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 29
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) ?x WHERE { { ?x rdf:type ontology:occupation . ?h rdf:type ontology:publication . ?h property:main_subject ?x } UNION { ?h property:main_subject ?x . ?x rdf:type ontology:occupation . ?h rdf:type ontology:work_of_art } } GROUP BY ?x } . FILTER ( ?y = 29 ) }
[]
occupation publication work of art
Q164236 Q33231
SYSTEM
war correspondent, photographer
Q164236 Q33231
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 29
The [ANSWERS] were the main subjects in the work approximately 29 publications and works of art
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) ?x WHERE { { ?x rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q732577 . ?h property:P921 ?x } UNION { ?h property:P921 ?x . ?x rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q838948 } } GROUP BY ?x } . FILTER ( ?y = 29 ) }
war correspondent photographer
The war correspondent and photographer were the main subjects in the work approximately 29 publications and works of art
war correspondent photographer
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 29
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) ?x WHERE { { ?x rdf:type ontology:occupation . ?h rdf:type ontology:publication . ?h property:main_subject ?x } UNION { ?h property:main_subject ?x . ?x rdf:type ontology:occupation . ?h rdf:type ontology:work_of_art } } GROUP BY ?x } . FILTER ( ?y = 29 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1067926
P106
Q502895
USER
Do Chas Gerretsen have career as those occupations ?
(Q1067926,P106,Q164236) (Q1067926,P106,Q33231)
action is_in
entity prev_answer
action find
entity Q1067926
relation P106
['Q1067926', 'P106', 'Q164236'] ['Q1067926', 'P106', 'Q33231']
ASK WHERE { resource:Q1067926 property:P106 ?p . VALUES ( ?p ) { ( resource:Q164236 ) ( resource:Q33231 ) } }
Chas Gerretsen
action is_in
entity prev_answer
action find
entity Chas Gerretsen
relation occupation
['Chas Gerretsen', 'occupation', 'war correspondent'] ['Chas Gerretsen', 'occupation', 'photographer']
ASK WHERE { resource:Chas_Gerretsen property:occupation ?p . VALUES ( ?p ) { ( resource:war_correspondent ) ( resource:photographer ) } }
[]
common name
SYSTEM
YES
(Q1067926,P106,Q164236) (Q1067926,P106,Q33231)
action is_in
entity prev_answer
action find
entity Q1067926
relation P106
[ANSWER]
['Q1067926', 'P106', 'Q164236'] ['Q1067926', 'P106', 'Q33231']
ASK WHERE { resource:Q1067926 property:P106 ?p . VALUES ( ?p ) { ( resource:Q164236 ) ( resource:Q33231 ) } }
Yes
action is_in
entity prev_answer
action find
entity Chas Gerretsen
relation occupation
['Chas Gerretsen', 'occupation', 'war correspondent'] ['Chas Gerretsen', 'occupation', 'photographer']
ASK WHERE { resource:Chas_Gerretsen property:occupation ?p . VALUES ( ?p ) { ( resource:war_correspondent ) ( resource:photographer ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q33231 Q196653 Q21644748
P417
Q502895
USER
Is Saint Veronica and War van Asten a patron saint of photographer ?
(Q33231,P417,Q196653) (Q33231,P417,Q21644748)
action is_in
entity Q33231
action intersection
action find_reverse
entity Q196653
relation P417
action find_reverse
entity Q21644748
relation P417
['Q33231', 'P417', 'Q196653'] ['Q33231', 'P417', 'Q21644748']
ASK WHERE { resource:Q33231 property:P417 resource:Q21644748 . resource:Q33231 property:P417 resource:Q196653 }
photographer Saint Veronica War van Asten
action is_in
entity photographer
action intersection
action find_reverse
entity Saint Veronica
relation patron saint
action find_reverse
entity War van Asten
relation patron saint
['photographer', 'patron saint', 'Saint Veronica'] ['photographer', 'patron saint', 'War van Asten']
ASK WHERE { resource:photographer property:patron_saint resource:War_van_Asten . resource:photographer property:patron_saint resource:Saint_Veronica }
[]
common name
SYSTEM
YES and NO respectively
(Q33231,P417,Q196653) (Q33231,P417,Q21644748)
action is_in
entity Q33231
action intersection
action find_reverse
entity Q196653
relation P417
action find_reverse
entity Q21644748
relation P417
[ANSWER]
['Q33231', 'P417', 'Q196653'] ['Q33231', 'P417', 'Q21644748']
ASK WHERE { resource:Q33231 property:P417 resource:Q21644748 . resource:Q33231 property:P417 resource:Q196653 }
YES and NO respectively
action is_in
entity photographer
action intersection
action find_reverse
entity Saint Veronica
relation patron saint
action find_reverse
entity War van Asten
relation patron saint
['photographer', 'patron saint', 'Saint Veronica'] ['photographer', 'patron saint', 'War van Asten']
ASK WHERE { resource:photographer property:patron_saint resource:War_van_Asten . resource:photographer property:patron_saint resource:Saint_Veronica }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2906015 Q21644748
P106
Q12737077
USER
Which occupations do War van Asten or Blanche Reverchon do for a living ?
OR((Q21644748,P106,c(Q12737077)), (Q2906015,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21644748
relation P106
action find
entity Q2906015
relation P106
type Q12737077
{'OR': [['Q21644748', 'P106', {'concept': 'Q12737077'}], ['Q2906015', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . { ?s property:P106 ?i . VALUES ( ?s ) { ( resource:Q21644748 ) ( resource:Q2906015 ) } } }
Blanche Reverchon War van Asten
action filter_type
action union
action find
entity War van Asten
relation occupation
action find
entity Blanche Reverchon
relation occupation
type occupation
{'OR': [['War van Asten', 'occupation', {'concept': 'occupation'}], ['Blanche Reverchon', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . { ?s property:occupation ?i . VALUES ( ?s ) { ( resource:War_van_Asten ) ( resource:Blanche_Reverchon ) } } }
[]
occupation
Q211346 Q1281618 Q3410028
SYSTEM
psychiatrist, sculptor, psychoanalyst
Q211346 Q1281618 Q3410028
OR((Q21644748,P106,c(Q12737077)), (Q2906015,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21644748
relation P106
action find
entity Q2906015
relation P106
type Q12737077
War van Asten or Blanche Reverchon do for a living a [ANSWERS]
{'OR': [['Q21644748', 'P106', {'concept': 'Q12737077'}], ['Q2906015', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . { ?s property:P106 ?i . VALUES ( ?s ) { ( resource:Q21644748 ) ( resource:Q2906015 ) } } }
psychiatrist sculptor psychoanalyst
War van Asten or Blanche Reverchon do for a living a psychiatrist, sculptor and psychoanalyst
psychiatrist sculptor psychoanalyst
action filter_type
action union
action find
entity War van Asten
relation occupation
action find
entity Blanche Reverchon
relation occupation
type occupation
{'OR': [['War van Asten', 'occupation', {'concept': 'occupation'}], ['Blanche Reverchon', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . { ?s property:occupation ?i . VALUES ( ?s ) { ( resource:War_van_Asten ) ( resource:Blanche_Reverchon ) } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q26700655
P1001
Q1048835
USER
Which political territory comes under the jurisdiction of mayor of Parla ?
(Q26700655,P1001,c(Q1048835))
action filter_type
action find
entity Q26700655
relation P1001
type Q1048835
['Q26700655', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q26700655 property:P1001 ?u . ?u rdf:type ontology:Q1048835 }
mayor of Parla
action filter_type
action find
entity mayor of Parla
relation applies to jurisdiction
type political territorial entity
['mayor of Parla', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:mayor_of_Parla property:applies_to_jurisdiction ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q824651
SYSTEM
Parla
Q824651
(Q26700655,P1001,c(Q1048835))
action filter_type
action find
entity Q26700655
relation P1001
type Q1048835
Of [ANSWER] comes under the jurisdiction of mayor of [ANSWER]
['Q26700655', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q26700655 property:P1001 ?u . ?u rdf:type ontology:Q1048835 }
Parla
Of Parla comes under the jurisdiction of mayor of Parla
Parla
action filter_type
action find
entity mayor of Parla
relation applies to jurisdiction
type political territorial entity
['mayor of Parla', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:mayor_of_Parla property:applies_to_jurisdiction ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q824651 Q281632
P47
Q1048835
USER
Does Humanes de Madrid have a shared border with that one ?
(Q824651,P47,Q281632)
action is_in
entity Q281632
action find
entity Q824651
relation P47
['Q824651', 'P47', 'Q281632']
ASK WHERE { resource:Q824651 property:P47 resource:Q281632 }
Parla Humanes de Madrid
action is_in
entity Humanes de Madrid
action find
entity Parla
relation shares border with
['Parla', 'shares border with', 'Humanes de Madrid']
ASK WHERE { resource:Parla property:shares_border_with resource:Humanes_de_Madrid }
[]
political territorial entity
SYSTEM
YES
(Q824651,P47,Q281632)
action is_in
entity Q281632
action find
entity Q824651
relation P47
[ANSWER]
['Q824651', 'P47', 'Q281632']
ASK WHERE { resource:Q824651 property:P47 resource:Q281632 }
Yes
action is_in
entity Humanes de Madrid
action find
entity Parla
relation shares border with
['Parla', 'shares border with', 'Humanes de Madrid']
ASK WHERE { resource:Parla property:shares_border_with resource:Humanes_de_Madrid }
[]