Simple Question (Direct)
Simple Question
Q1170819
P57
Q502895
USER
Who directed Hannah med H ?
(Q1170819,P57,c(Q502895))
action filter_type
action find
entity Q1170819
relation P57
type Q502895
['Q1170819', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1170819 property:P57 ?n . ?n rdf:type ontology:Q502895 }
Hannah med H
action filter_type
action find
entity Hannah med H
relation director
type common name
['Hannah med H', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Hannah_med_H property:director ?n . ?n rdf:type ontology:common_name }
[]
common name
Q522657
SYSTEM
Christina Olofson
Q522657
(Q1170819,P57,c(Q502895))
action filter_type
action find
entity Q1170819
relation P57
type Q502895
[ANSWER] directed Hannah med H
['Q1170819', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1170819 property:P57 ?n . ?n rdf:type ontology:Q502895 }
Christina Olofson
Christina Olofson directed Hannah med H
Christina Olofson
action filter_type
action find
entity Hannah med H
relation director
type common name
['Hannah med H', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Hannah_med_H property:director ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1170819
P344
Q502895
USER
Who is appointed as the cinematographer of Hannah med H ?
(Q1170819,P344,c(Q502895))
action filter_type
action find
entity Q1170819
relation P344
type Q502895
['Q1170819', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1170819 property:P344 ?l . ?l rdf:type ontology:Q502895 }
Hannah med H
action filter_type
action find
entity Hannah med H
relation director of photography
type common name
['Hannah med H', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Hannah_med_H property:director_of_photography ?l . ?l rdf:type ontology:common_name }
[]
common name
Q1258139
SYSTEM
Robert Nordström
Q1258139
(Q1170819,P344,c(Q502895))
action filter_type
action find
entity Q1170819
relation P344
type Q502895
[ANSWER] is appointed as the cinematographer of Hannah med H
['Q1170819', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1170819 property:P344 ?l . ?l rdf:type ontology:Q502895 }
Robert Nordström
Robert Nordström is appointed as the cinematographer of Hannah med H
Robert Nordström
action filter_type
action find
entity Hannah med H
relation director of photography
type common name
['Hannah med H', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Hannah_med_H property:director_of_photography ?l . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P88
Q874405 Q502895 Q838948
USER
Which works of art did max number of social groups or people commission ?
(c(Q838948),P88,c(Q874405)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P88
type Q838948
type Q874405
action find_tuple_counts
relation P88
type Q838948
type Q502895
[{'concept': 'Q838948'}, 'P88', [{'concept': 'Q874405'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?h WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:Q874405 ) ( ontology:Q502895 ) } } GROUP BY ?h } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) ?c WHERE { { ?c property:P88 ?l . ?c rdf:type ontology:Q838948 . ?l rdf:type ontology:Q502895 } UNION { ?c property:P88 ?l . ?c rdf:type ontology:Q838948 . ?l rdf:type ontology:Q874405 } } GROUP BY ?c } } }
action argmax
action union
action find_tuple_counts
relation commissioned by
type work of art
type social group
action find_tuple_counts
relation commissioned by
type work of art
type common name
[{'concept': 'work of art'}, 'commissioned by', [{'concept': 'social group'}, {'concept': 'common name'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?h WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:social_group ) ( ontology:common_name ) } } GROUP BY ?h } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) ?c WHERE { { ?c property:commissioned_by ?l . ?c rdf:type ontology:work_of_art . ?l rdf:type ontology:common_name } UNION { ?c property:commissioned_by ?l . ?c rdf:type ontology:work_of_art . ?l rdf:type ontology:social_group } } GROUP BY ?c } } }
[]
social group common name work of art
Q16060284 Q2182509 Q2415504
SYSTEM
Bust of Cardinal Roberto Bellarmine, Cristo della Minerva, David
Q16060284 Q2182509 Q2415504
(c(Q838948),P88,c(Q874405)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P88
type Q838948
type Q874405
action find_tuple_counts
relation P88
type Q838948
type Q502895
The [ANSWERS] max number of social groups or people commissioned
[{'concept': 'Q838948'}, 'P88', [{'concept': 'Q874405'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?h WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:Q874405 ) ( ontology:Q502895 ) } } GROUP BY ?h } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) ?c WHERE { { ?c property:P88 ?l . ?c rdf:type ontology:Q838948 . ?l rdf:type ontology:Q502895 } UNION { ?c property:P88 ?l . ?c rdf:type ontology:Q838948 . ?l rdf:type ontology:Q874405 } } GROUP BY ?c } } }
Bust of Cardinal Roberto Bellarmine Cristo della Minerva David
The Bust of Cardinal Roberto Bellarmine, Cristo della Minerva and David max number of social groups or people commissioned
Bust of Cardinal Roberto Bellarmine Cristo della Minerva David
action argmax
action union
action find_tuple_counts
relation commissioned by
type work of art
type social group
action find_tuple_counts
relation commissioned by
type work of art
type common name
[{'concept': 'work of art'}, 'commissioned by', [{'concept': 'social group'}, {'concept': 'common name'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?h WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:social_group ) ( ontology:common_name ) } } GROUP BY ?h } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) ?c WHERE { { ?c property:commissioned_by ?l . ?c rdf:type ontology:work_of_art . ?l rdf:type ontology:common_name } UNION { ?c property:commissioned_by ?l . ?c rdf:type ontology:work_of_art . ?l rdf:type ontology:social_group } } GROUP BY ?c } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q838948 Q15619164 Q234460
USER
How many works of art are approximately 1 abstract beings or texts a component of ?
(c(Q15619164)|c(Q234460),P361,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q15619164
action find_reverse_tuple_counts
relation P361
type Q838948
type Q234460
value 1
[[{'concept': 'Q15619164'}, {'concept': 'Q234460'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?h WHERE { { ?b property:P361 ?h . ?h rdf:type ontology:Q838948 . ?b rdf:type ontology:Q234460 } UNION { ?b property:P361 ?h . ?b rdf:type ontology:Q15619164 . ?h rdf:type ontology:Q838948 } } GROUP BY ?h } . FILTER ( ?s = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type abstract being
action find_reverse_tuple_counts
relation part of
type work of art
type text
value 1
[[{'concept': 'abstract being'}, {'concept': 'text'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?h WHERE { { ?b property:part_of ?h . ?h rdf:type ontology:work_of_art . ?b rdf:type ontology:text } UNION { ?b property:part_of ?h . ?b rdf:type ontology:abstract_being . ?h rdf:type ontology:work_of_art } } GROUP BY ?h } . FILTER ( ?s = 1 ) }
[]
work of art abstract being text
SYSTEM
5
Q206400 Q18547944 Q215750 Q41567 Q24980
(c(Q15619164)|c(Q234460),P361,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q15619164
action find_reverse_tuple_counts
relation P361
type Q838948
type Q234460
value 1
[ANSWER]
[[{'concept': 'Q15619164'}, {'concept': 'Q234460'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?h WHERE { { ?b property:P361 ?h . ?h rdf:type ontology:Q838948 . ?b rdf:type ontology:Q234460 } UNION { ?b property:P361 ?h . ?b rdf:type ontology:Q15619164 . ?h rdf:type ontology:Q838948 } } GROUP BY ?h } . FILTER ( ?s = 1 ) }
The Merchant of Venice The Martian Julius Caesar Hamlet Monty Python's The Meaning of Life
5
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type abstract being
action find_reverse_tuple_counts
relation part of
type work of art
type text
value 1
[[{'concept': 'abstract being'}, {'concept': 'text'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?h WHERE { { ?b property:part_of ?h . ?h rdf:type ontology:work_of_art . ?b rdf:type ontology:text } UNION { ?b property:part_of ?h . ?b rdf:type ontology:abstract_being . ?h rdf:type ontology:work_of_art } } GROUP BY ?h } . FILTER ( ?s = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2415504
P195
Q2668072
USER
Which collection contains David in it ?
(Q2415504,P195,c(Q2668072))
action filter_type
action find
entity Q2415504
relation P195
type Q2668072
['Q2415504', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?r WHERE { resource:Q2415504 property:P195 ?r . ?r rdf:type ontology:Q2668072 }
David
action filter_type
action find
entity David
relation collection
type collection
['David', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?r WHERE { resource:David property:collection ?r . ?r rdf:type ontology:collection }
[]
collection
Q271928
SYSTEM
Palazzo Vecchio
Q271928
(Q2415504,P195,c(Q2668072))
action filter_type
action find
entity Q2415504
relation P195
type Q2668072
[ANSWER] contains David in it
['Q2415504', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?r WHERE { resource:Q2415504 property:P195 ?r . ?r rdf:type ontology:Q2668072 }
Palazzo Vecchio
Palazzo Vecchio contains David in it
Palazzo Vecchio
action filter_type
action find
entity David
relation collection
type collection
['David', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?r WHERE { resource:David property:collection ?r . ?r rdf:type ontology:collection }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q271928
P793
Q1190554
USER
Which significant event is that collection associated with ?
(Q271928,P793,c(Q1190554))
action filter_type
action find
entity Q271928
relation P793
type Q1190554
['Q271928', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?s WHERE { resource:Q271928 property:P793 ?s . ?s rdf:type ontology:Q1190554 }
Palazzo Vecchio
action filter_type
action find
entity Palazzo Vecchio
relation significant event
type event
['Palazzo Vecchio', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?s WHERE { resource:Palazzo_Vecchio property:significant_event ?s . ?s rdf:type ontology:event }
[]
event
Q385378
SYSTEM
construction
Q385378
(Q271928,P793,c(Q1190554))
action filter_type
action find
entity Q271928
relation P793
type Q1190554
That collection is associated with [ANSWER]
['Q271928', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?s WHERE { resource:Q271928 property:P793 ?s . ?s rdf:type ontology:Q1190554 }
construction
That collection is associated with construction
construction
action filter_type
action find
entity Palazzo Vecchio
relation significant event
type event
['Palazzo Vecchio', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?s WHERE { resource:Palazzo_Vecchio property:significant_event ?s . ?s rdf:type ontology:event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q385378
P106
Q502895
USER
Who has a job as that event ?
(c(Q502895),P106,Q385378)
action filter_type
action find_reverse
entity Q385378
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q385378']
SELECT DISTINCT ?u WHERE { ?u property:P106 resource:Q385378 . ?u rdf:type ontology:Q502895 }
construction
action filter_type
action find_reverse
entity construction
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'construction']
SELECT DISTINCT ?u WHERE { ?u property:occupation resource:construction . ?u rdf:type ontology:common_name }
[]
common name
Q6134578
SYSTEM
James Gerard Kennedy, Sr.
Q6134578
(c(Q502895),P106,Q385378)
action filter_type
action find_reverse
entity Q385378
relation P106
type Q502895
[ANSWER] has a job as that event
[{'concept': 'Q502895'}, 'P106', 'Q385378']
SELECT DISTINCT ?u WHERE { ?u property:P106 resource:Q385378 . ?u rdf:type ontology:Q502895 }
James Gerard Kennedy, Sr.
James Gerard Kennedy, Sr. has a job as that event
James Gerard Kennedy, Sr.
action filter_type
action find_reverse
entity construction
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'construction']
SELECT DISTINCT ?u WHERE { ?u property:occupation resource:construction . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q6134578 Q30 Q818538
P27
Q15617994
USER
Is that person a civilian of United States of America and Loissin ?
(Q6134578,P27,Q30) (Q6134578,P27,Q818538)
action is_in
entity Q6134578
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q818538
relation P27
['Q6134578', 'P27', 'Q30'] ['Q6134578', 'P27', 'Q818538']
ASK WHERE { resource:Q6134578 property:P27 resource:Q30 . resource:Q6134578 property:P27 resource:Q818538 }
James Gerard Kennedy, Sr. United States of America Loissin
action is_in
entity James Gerard Kennedy, Sr.
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Loissin
relation country of citizenship
['James Gerard Kennedy, Sr.', 'country of citizenship', 'United States of America'] ['James Gerard Kennedy, Sr.', 'country of citizenship', 'Loissin']
ASK WHERE { resource:James_Gerard_Kennedy,_Sr. property:country_of_citizenship resource:United_States_of_America . resource:James_Gerard_Kennedy,_Sr. property:country_of_citizenship resource:Loissin }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q6134578,P27,Q30) (Q6134578,P27,Q818538)
action is_in
entity Q6134578
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q818538
relation P27
[ANSWER]
['Q6134578', 'P27', 'Q30'] ['Q6134578', 'P27', 'Q818538']
ASK WHERE { resource:Q6134578 property:P27 resource:Q30 . resource:Q6134578 property:P27 resource:Q818538 }
YES and NO respectively
action is_in
entity James Gerard Kennedy, Sr.
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Loissin
relation country of citizenship
['James Gerard Kennedy, Sr.', 'country of citizenship', 'United States of America'] ['James Gerard Kennedy, Sr.', 'country of citizenship', 'Loissin']
ASK WHERE { resource:James_Gerard_Kennedy,_Sr. property:country_of_citizenship resource:United_States_of_America . resource:James_Gerard_Kennedy,_Sr. property:country_of_citizenship resource:Loissin }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1170819 Q34
P495
Q15617994
USER
Did Hannah med H originate Sweden ?
(Q1170819,P495,Q34)
action is_in
entity Q34
action find
entity Q1170819
relation P495
['Q1170819', 'P495', 'Q34']
ASK WHERE { resource:Q1170819 property:P495 resource:Q34 }
Hannah med H Sweden
action is_in
entity Sweden
action find
entity Hannah med H
relation country of origin
['Hannah med H', 'country of origin', 'Sweden']
ASK WHERE { resource:Hannah_med_H property:country_of_origin resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1170819,P495,Q34)
action is_in
entity Q34
action find
entity Q1170819
relation P495
[ANSWER]
['Q1170819', 'P495', 'Q34']
ASK WHERE { resource:Q1170819 property:P495 resource:Q34 }
Yes
action is_in
entity Sweden
action find
entity Hannah med H
relation country of origin
['Hannah med H', 'country of origin', 'Sweden']
ASK WHERE { resource:Hannah_med_H property:country_of_origin resource:Sweden }
[]