Simple Question (Direct)
Simple Question
Q3018058
P140
Q9174
USER
Which religion does David Herbert relate to ?
(Q3018058,P140,c(Q9174))
action filter_type
action find
entity Q3018058
relation P140
type Q9174
['Q3018058', 'P140', {'concept': 'Q9174'}]
SELECT DISTINCT ?z WHERE { resource:Q3018058 property:P140 ?z . ?z rdf:type ontology:Q9174 }
David Herbert
action filter_type
action find
entity David Herbert
relation religion
type religion
['David Herbert', 'religion', {'concept': 'religion'}]
SELECT DISTINCT ?z WHERE { resource:David_Herbert property:religion ?z . ?z rdf:type ontology:religion }
[]
religion
Q6423963
SYSTEM
Anglicanism
Q6423963
(Q3018058,P140,c(Q9174))
action filter_type
action find
entity Q3018058
relation P140
type Q9174
David Herbert relates to [ANSWER]
['Q3018058', 'P140', {'concept': 'Q9174'}]
SELECT DISTINCT ?z WHERE { resource:Q3018058 property:P140 ?z . ?z rdf:type ontology:Q9174 }
Anglicanism
David Herbert relates to Anglicanism
Anglicanism
action filter_type
action find
entity David Herbert
relation religion
type religion
['David Herbert', 'religion', {'concept': 'religion'}]
SELECT DISTINCT ?z WHERE { resource:David_Herbert property:religion ?z . ?z rdf:type ontology:religion }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3018058
P162
Q838948
USER
Which work of art has been produced by that person ?
(c(Q838948),P162,Q6423963)
action filter_type
action find_reverse
entity Q3018058
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q6423963']
SELECT DISTINCT ?k WHERE { ?k property:P162 resource:Q3018058 . ?k rdf:type ontology:Q838948 }
David Herbert
action filter_type
action find_reverse
entity David Herbert
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Anglicanism']
SELECT DISTINCT ?k WHERE { ?k property:producer resource:David_Herbert . ?k rdf:type ontology:work_of_art }
[]
work of art
Q4927618
SYSTEM
Blood Hook
Q4927618
(c(Q838948),P162,Q6423963)
action filter_type
action find_reverse
entity Q3018058
relation P162
type Q838948
[ANSWER] has been produced by that person
[{'concept': 'Q838948'}, 'P162', 'Q6423963']
SELECT DISTINCT ?k WHERE { ?k property:P162 resource:Q3018058 . ?k rdf:type ontology:Q838948 }
Blood Hook
Blood Hook has been produced by that person
Blood Hook
action filter_type
action find_reverse
entity David Herbert
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Anglicanism']
SELECT DISTINCT ?k WHERE { ?k property:producer resource:David_Herbert . ?k rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q3018058
P162 P364
Q838948
USER
Which works of art created David Herbert and have English as their original language of creation ?
AND((c(Q838948),P162,Q3018058), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q3018058
relation P162
action find_reverse
entity Q1860
relation P364
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P162', 'Q3018058'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?y WHERE { ?y property:P162 resource:Q3018058 . ?y property:P364 resource:Q1860 . ?y rdf:type ontology:Q838948 }
English David Herbert
action filter_type
action intersection
action find_reverse
entity David Herbert
relation producer
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'producer', 'David Herbert'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?y WHERE { ?y property:producer resource:David_Herbert . ?y property:original_language_of_work resource:English . ?y rdf:type ontology:work_of_art }
[]
work of art
Q4927618
SYSTEM
Blood Hook
Q4927618
AND((c(Q838948),P162,Q3018058), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q3018058
relation P162
action find_reverse
entity Q1860
relation P364
type Q838948
[ANSWER] created David Herbert and have English as their original language of creation
{'AND': [[{'concept': 'Q838948'}, 'P162', 'Q3018058'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?y WHERE { ?y property:P162 resource:Q3018058 . ?y property:P364 resource:Q1860 . ?y rdf:type ontology:Q838948 }
Blood Hook
Blood Hook created David Herbert and have English as their original language of creation
Blood Hook
action filter_type
action intersection
action find_reverse
entity David Herbert
relation producer
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'producer', 'David Herbert'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?y WHERE { ?y property:producer resource:David_Herbert . ?y property:original_language_of_work resource:English . ?y rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4927618 Q30
P495
Q15617994
USER
Is United States of America the origin of that work of art ?
(Q4927618,P495,Q30)
action is_in
entity Q30
action find
entity Q4927618
relation P495
['Q4927618', 'P495', 'Q30']
ASK WHERE { resource:Q4927618 property:P495 resource:Q30 }
Blood Hook United States of America
action is_in
entity United States of America
action find
entity Blood Hook
relation country of origin
['Blood Hook', 'country of origin', 'United States of America']
ASK WHERE { resource:Blood_Hook property:country_of_origin resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q4927618,P495,Q30)
action is_in
entity Q30
action find
entity Q4927618
relation P495
[ANSWER]
['Q4927618', 'P495', 'Q30']
ASK WHERE { resource:Q4927618 property:P495 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Blood Hook
relation country of origin
['Blood Hook', 'country of origin', 'United States of America']
ASK WHERE { resource:Blood_Hook property:country_of_origin resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3018058 Q502758 Q17757
P27
Q15617994
USER
Is David Herbert a native of Wemding and Bubbio ?
(Q3018058,P27,Q502758) (Q3018058,P27,Q17757)
action is_in
entity Q3018058
action intersection
action find_reverse
entity Q502758
relation P27
action find_reverse
entity Q17757
relation P27
['Q3018058', 'P27', 'Q502758'] ['Q3018058', 'P27', 'Q17757']
ASK WHERE { resource:Q3018058 property:P27 resource:Q502758 . resource:Q3018058 property:P27 resource:Q17757 }
David Herbert Wemding Bubbio
action is_in
entity David Herbert
action intersection
action find_reverse
entity Wemding
relation country of citizenship
action find_reverse
entity Bubbio
relation country of citizenship
['David Herbert', 'country of citizenship', 'Wemding'] ['David Herbert', 'country of citizenship', 'Bubbio']
ASK WHERE { resource:David_Herbert property:country_of_citizenship resource:Wemding . resource:David_Herbert property:country_of_citizenship resource:Bubbio }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3018058,P27,Q502758) (Q3018058,P27,Q17757)
action is_in
entity Q3018058
action intersection
action find_reverse
entity Q502758
relation P27
action find_reverse
entity Q17757
relation P27
[ANSWER]
['Q3018058', 'P27', 'Q502758'] ['Q3018058', 'P27', 'Q17757']
ASK WHERE { resource:Q3018058 property:P27 resource:Q502758 . resource:Q3018058 property:P27 resource:Q17757 }
No
action is_in
entity David Herbert
action intersection
action find_reverse
entity Wemding
relation country of citizenship
action find_reverse
entity Bubbio
relation country of citizenship
['David Herbert', 'country of citizenship', 'Wemding'] ['David Herbert', 'country of citizenship', 'Bubbio']
ASK WHERE { resource:David_Herbert property:country_of_citizenship resource:Wemding . resource:David_Herbert property:country_of_citizenship resource:Bubbio }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4927618 Q6693917
P495
Q15617994
USER
Is Lower Woodley the origin of Blood Hook ?
(Q4927618,P495,Q6693917)
action is_in
entity Q6693917
action find
entity Q4927618
relation P495
['Q4927618', 'P495', 'Q6693917']
ASK WHERE { resource:Q4927618 property:P495 resource:Q6693917 }
Blood Hook Lower Woodley
action is_in
entity Lower Woodley
action find
entity Blood Hook
relation country of origin
['Blood Hook', 'country of origin', 'Lower Woodley']
ASK WHERE { resource:Blood_Hook property:country_of_origin resource:Lower_Woodley }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4927618,P495,Q6693917)
action is_in
entity Q6693917
action find
entity Q4927618
relation P495
[ANSWER]
['Q4927618', 'P495', 'Q6693917']
ASK WHERE { resource:Q4927618 property:P495 resource:Q6693917 }
No
action is_in
entity Lower Woodley
action find
entity Blood Hook
relation country of origin
['Blood Hook', 'country of origin', 'Lower Woodley']
ASK WHERE { resource:Blood_Hook property:country_of_origin resource:Lower_Woodley }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4927618
P86
Q502895
USER
Who did the compostion for that work of art ?
action filter_type
action find
entity Q4927618
relation P86
type Q502895
SELECT DISTINCT ?d WHERE { resource:Q4927618 property:P86 ?d . ?d rdf:type ontology:Q502895 }
Blood Hook
action filter_type
action find
entity Blood Hook
relation composer
type common name
SELECT DISTINCT ?d WHERE { resource:Blood_Hook property:composer ?d . ?d rdf:type ontology:common_name }
[]
common name
Q2594562
SYSTEM
Kevin Murphy
Q2594562
action filter_type
action find
entity Q4927618
relation P86
type Q502895
[ANSWER] did the compostion for that work of art
SELECT DISTINCT ?d WHERE { resource:Q4927618 property:P86 ?d . ?d rdf:type ontology:Q502895 }
Kevin Murphy
Kevin Murphy did the compostion for that work of art
Kevin Murphy
action filter_type
action find
entity Blood Hook
relation composer
type common name
SELECT DISTINCT ?d WHERE { resource:Blood_Hook property:composer ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can around 2580 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2580
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?e = 2580 ) . { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?a } }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2580
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?e = 2580 ) . { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?a } }
[]
musical instrument common name
Q46185 Q8338 Q1444
SYSTEM
bass guitar, trumpet, organ
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2580
[ANSWERS] can around 2580 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?e = 2580 ) . { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?a } }
bass guitar trumpet organ drum kit
Bass guitar, trumpet and organ can around 2580 people perform with
bass guitar trumpet organ
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2580
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?e = 2580 ) . { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q46185 Q8338 Q1444
P425
Q12737077
USER
Which occupations do bass guitar, trumpet and organ belong to ?
(c(Q12737077),P425,Q46185) (c(Q12737077),P425,Q8338) (c(Q12737077),P425,Q1444)
action union
action filter_type
action find_reverse
entity Q46185
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q8338
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q1444
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q46185'] [{'concept': 'Q12737077'}, 'P425', 'Q8338'] [{'concept': 'Q12737077'}, 'P425', 'Q1444']
SELECT DISTINCT ?b WHERE { VALUES ( ?q ) { ( resource:Q8338 ) ( resource:Q46185 ) } . ?b property:P425 ?q }
bass guitar trumpet organ
action union
action filter_type
action find_reverse
entity bass guitar
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity trumpet
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity organ
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'bass guitar'] [{'concept': 'occupation'}, 'field of this occupation', 'trumpet'] [{'concept': 'occupation'}, 'field of this occupation', 'organ']
SELECT DISTINCT ?b WHERE { VALUES ( ?q ) { ( resource:trumpet ) ( resource:bass_guitar ) } . ?b property:field_of_this_occupation ?q }
[]
occupation
Q17093672 Q21504978 Q765778
SYSTEM
trumpeter, bass-guitarist, organist
Q21504978 Q17093672 Q765778 Q1937431
(c(Q12737077),P425,Q46185) (c(Q12737077),P425,Q8338) (c(Q12737077),P425,Q1444)
action union
action filter_type
action find_reverse
entity Q46185
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q8338
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q1444
relation P425
type Q12737077
Bass guitar , trumpet and organ belong to the [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q46185'] [{'concept': 'Q12737077'}, 'P425', 'Q8338'] [{'concept': 'Q12737077'}, 'P425', 'Q1444']
SELECT DISTINCT ?b WHERE { VALUES ( ?q ) { ( resource:Q8338 ) ( resource:Q46185 ) } . ?b property:P425 ?q }
bass-guitarist trumpeter organist organ maker
Bass guitar , trumpet and organ belong to the trumpeter, bass-guitarist and organist
trumpeter bass-guitarist organist
action union
action filter_type
action find_reverse
entity bass guitar
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity trumpet
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity organ
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'bass guitar'] [{'concept': 'occupation'}, 'field of this occupation', 'trumpet'] [{'concept': 'occupation'}, 'field of this occupation', 'organ']
SELECT DISTINCT ?b WHERE { VALUES ( ?q ) { ( resource:trumpet ) ( resource:bass_guitar ) } . ?b property:field_of_this_occupation ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q765778
P921
Q223393
USER
Which literary genre was mainly based on organist ?
(c(Q223393),P921,Q765778)
action filter_type
action find_reverse
entity Q765778
relation P921
type Q223393
[{'concept': 'Q223393'}, 'P921', 'Q765778']
SELECT DISTINCT ?w WHERE { ?w property:P921 resource:Q765778 . ?w rdf:type ontology:Q223393 }
organist
action filter_type
action find_reverse
entity organist
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'organist']
SELECT DISTINCT ?w WHERE { ?w property:main_subject resource:organist . ?w rdf:type ontology:literary_genre }
[]
literary genre
Q21993902
SYSTEM
Biographical Dictionary of the Organ
Q21993902
(c(Q223393),P921,Q765778)
action filter_type
action find_reverse
entity Q765778
relation P921
type Q223393
[ANSWER] was mainly based on organist
[{'concept': 'Q223393'}, 'P921', 'Q765778']
SELECT DISTINCT ?w WHERE { ?w property:P921 resource:Q765778 . ?w rdf:type ontology:Q223393 }
Biographical Dictionary of the Organ
Biographical Dictionary of the Organ was mainly based on organist
Biographical Dictionary of the Organ
action filter_type
action find_reverse
entity organist
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'organist']
SELECT DISTINCT ?w WHERE { ?w property:main_subject resource:organist . ?w rdf:type ontology:literary_genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2594562 Q8704
P58
Q201658
USER
How many film genres are Kevin Murphy or Walt Disney a screenwriter of ?
(c(Q201658),P58,Q2594562) (c(Q201658),P58,Q8704)
action count
action union
action filter_type
action find_reverse
entity Q2594562
relation P58
type Q201658
action filter_type
action find_reverse
entity Q8704
relation P58
type Q201658
[{'concept': 'Q201658'}, 'P58', 'Q2594562'] [{'concept': 'Q201658'}, 'P58', 'Q8704']
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { ?l property:P58 resource:Q2594562 . ?l rdf:type ontology:Q201658 } UNION { ?l property:P58 resource:Q8704 . ?l rdf:type ontology:Q201658 } }
Kevin Murphy Walt Disney
action count
action union
action filter_type
action find_reverse
entity Kevin Murphy
relation screenwriter
type film genre
action filter_type
action find_reverse
entity Walt Disney
relation screenwriter
type film genre
[{'concept': 'film genre'}, 'screenwriter', 'Kevin Murphy'] [{'concept': 'film genre'}, 'screenwriter', 'Walt Disney']
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { ?l property:screenwriter resource:Kevin_Murphy . ?l rdf:type ontology:film_genre } UNION { ?l property:screenwriter resource:Walt_Disney . ?l rdf:type ontology:film_genre } }
[]
film genre
SYSTEM
2
Q816038 Q1753096
(c(Q201658),P58,Q2594562) (c(Q201658),P58,Q8704)
action count
action union
action filter_type
action find_reverse
entity Q2594562
relation P58
type Q201658
action filter_type
action find_reverse
entity Q8704
relation P58
type Q201658
[ANSWER]
[{'concept': 'Q201658'}, 'P58', 'Q2594562'] [{'concept': 'Q201658'}, 'P58', 'Q8704']
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { ?l property:P58 resource:Q2594562 . ?l rdf:type ontology:Q201658 } UNION { ?l property:P58 resource:Q8704 . ?l rdf:type ontology:Q201658 } }
Steamboat Willie Plane Crazy
2
action count
action union
action filter_type
action find_reverse
entity Kevin Murphy
relation screenwriter
type film genre
action filter_type
action find_reverse
entity Walt Disney
relation screenwriter
type film genre
[{'concept': 'film genre'}, 'screenwriter', 'Kevin Murphy'] [{'concept': 'film genre'}, 'screenwriter', 'Walt Disney']
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { ?l property:screenwriter resource:Kevin_Murphy . ?l rdf:type ontology:film_genre } UNION { ?l property:screenwriter resource:Walt_Disney . ?l rdf:type ontology:film_genre } }
[]