Simple Question (Direct)
Simple Question
Q1353168
P21
Q290
USER
Which sex does Erich Schmid have ?
(Q1353168,P21,c(Q290))
action filter_type
action find
entity Q1353168
relation P21
type Q290
['Q1353168', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q1353168 property:P21 ?u . ?u rdf:type ontology:Q290 }
Erich Schmid
action filter_type
action find
entity Erich Schmid
relation gender
type sex
['Erich Schmid', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Erich_Schmid property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1353168,P21,c(Q290))
action filter_type
action find
entity Q1353168
relation P21
type Q290
Erich Schmid has a [ANSWER]
['Q1353168', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q1353168 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
Erich Schmid has a male
male
action filter_type
action find
entity Erich Schmid
relation gender
type sex
['Erich Schmid', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Erich_Schmid property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P180
Q340169
USER
Which media depicts that sex ?
(c(Q340169),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', 'Q6581097']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q340169 . ?z property:P180 resource:Q6581097 }
male
action filter_type
action find_reverse
entity male
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'male']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:media . ?z property:depicts resource:male }
[]
media
Q20020115
SYSTEM
Portrait of a Young Man
Q20020115
(c(Q340169),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
[ANSWER] depicts that sex
[{'concept': 'Q340169'}, 'P180', 'Q6581097']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q340169 . ?z property:P180 resource:Q6581097 }
Portrait of a Young Man
Portrait of a Young Man depicts that sex
Portrait of a Young Man
action filter_type
action find_reverse
entity male
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'male']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:media . ?z property:depicts resource:male }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P186
Q79529 Q8063
USER
How many chemical substances and rocks are used to manufacture that media ?
(Q20020115,P186,c(Q79529)) (Q20020115,P186,c(Q8063)) (Q20020115,P186,c(Q79529)) (Q20020115,P186,c(Q8063))
action count
action union
action filter_type
action find
entity Q20020115
relation P186
type Q79529
action filter_type
action find
entity Q20020115
relation P186
type Q8063
['Q20020115', 'P186', {'concept': 'Q79529'}] ['Q20020115', 'P186', {'concept': 'Q8063'}] ['Q20020115', 'P186', {'concept': 'Q79529'}] ['Q20020115', 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { resource:Q20020115 property:P186 ?z . ?z rdf:type ontology:Q79529 } UNION { resource:Q20020115 property:P186 ?z . ?z rdf:type ontology:Q8063 } }
action count
action union
action filter_type
action find
entity Portrait of a Young Man
relation material used
type chemical substance
action filter_type
action find
entity Portrait of a Young Man
relation material used
type rock
['Portrait of a Young Man', 'material used', {'concept': 'chemical substance'}] ['Portrait of a Young Man', 'material used', {'concept': 'rock'}] ['Portrait of a Young Man', 'material used', {'concept': 'chemical substance'}] ['Portrait of a Young Man', 'material used', {'concept': 'rock'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { resource:Portrait_of_a_Young_Man property:material_used ?z . ?z rdf:type ontology:chemical_substance } UNION { resource:Portrait_of_a_Young_Man property:material_used ?z . ?z rdf:type ontology:rock } }
[]
chemical substance rock
SYSTEM
1 chemical substances and 1 rocks
Q11472 Q183670
(Q20020115,P186,c(Q79529)) (Q20020115,P186,c(Q8063)) (Q20020115,P186,c(Q79529)) (Q20020115,P186,c(Q8063))
action count
action union
action filter_type
action find
entity Q20020115
relation P186
type Q79529
action filter_type
action find
entity Q20020115
relation P186
type Q8063
[ANSWER]
['Q20020115', 'P186', {'concept': 'Q79529'}] ['Q20020115', 'P186', {'concept': 'Q8063'}] ['Q20020115', 'P186', {'concept': 'Q79529'}] ['Q20020115', 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { resource:Q20020115 property:P186 ?z . ?z rdf:type ontology:Q79529 } UNION { resource:Q20020115 property:P186 ?z . ?z rdf:type ontology:Q8063 } }
paper chalk
1 chemical substances and 1 rocks
action count
action union
action filter_type
action find
entity Portrait of a Young Man
relation material used
type chemical substance
action filter_type
action find
entity Portrait of a Young Man
relation material used
type rock
['Portrait of a Young Man', 'material used', {'concept': 'chemical substance'}] ['Portrait of a Young Man', 'material used', {'concept': 'rock'}] ['Portrait of a Young Man', 'material used', {'concept': 'chemical substance'}] ['Portrait of a Young Man', 'material used', {'concept': 'rock'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { resource:Portrait_of_a_Young_Man property:material_used ?z . ?z rdf:type ontology:chemical_substance } UNION { resource:Portrait_of_a_Young_Man property:material_used ?z . ?z rdf:type ontology:rock } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20020115
P170
Q502895
USER
Which person is credited with creation of that media ?
action filter_type
action find
entity Q20020115
relation P170
type Q502895
SELECT DISTINCT ?d WHERE { resource:Q20020115 property:P170 ?d . ?d rdf:type ontology:Q502895 }
Portrait of a Young Man
action filter_type
action find
entity Portrait of a Young Man
relation creator
type common name
SELECT DISTINCT ?d WHERE { resource:Portrait_of_a_Young_Man property:creator ?d . ?d rdf:type ontology:common_name }
[]
common name
Q160538
SYSTEM
Gian Lorenzo Bernini
Q160538
action filter_type
action find
entity Q20020115
relation P170
type Q502895
[ANSWER] is credited with creation of that media
SELECT DISTINCT ?d WHERE { resource:Q20020115 property:P170 ?d . ?d rdf:type ontology:Q502895 }
Gian Lorenzo Bernini
Gian Lorenzo Bernini is credited with creation of that media
Gian Lorenzo Bernini
action filter_type
action find
entity Portrait of a Young Man
relation creator
type common name
SELECT DISTINCT ?d WHERE { resource:Portrait_of_a_Young_Man property:creator ?d . ?d rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q160538 Q483501 Q1141526
P106
Q12737077
USER
Does that person have the profession of artist and stripper ?
(Q160538,P106,Q483501) (Q160538,P106,Q1141526)
action is_in
entity Q160538
action intersection
action find_reverse
entity Q483501
relation P106
action find_reverse
entity Q1141526
relation P106
['Q160538', 'P106', 'Q483501'] ['Q160538', 'P106', 'Q1141526']
ASK WHERE { resource:Q160538 property:P106 resource:Q483501 . resource:Q160538 property:P106 resource:Q1141526 }
Gian Lorenzo Bernini artist stripper
action is_in
entity Gian Lorenzo Bernini
action intersection
action find_reverse
entity artist
relation occupation
action find_reverse
entity stripper
relation occupation
['Gian Lorenzo Bernini', 'occupation', 'artist'] ['Gian Lorenzo Bernini', 'occupation', 'stripper']
ASK WHERE { resource:Gian_Lorenzo_Bernini property:occupation resource:artist . resource:Gian_Lorenzo_Bernini property:occupation resource:stripper }
[]
occupation
SYSTEM
YES and NO respectively
(Q160538,P106,Q483501) (Q160538,P106,Q1141526)
action is_in
entity Q160538
action intersection
action find_reverse
entity Q483501
relation P106
action find_reverse
entity Q1141526
relation P106
[ANSWER]
['Q160538', 'P106', 'Q483501'] ['Q160538', 'P106', 'Q1141526']
ASK WHERE { resource:Q160538 property:P106 resource:Q483501 . resource:Q160538 property:P106 resource:Q1141526 }
YES and NO respectively
action is_in
entity Gian Lorenzo Bernini
action intersection
action find_reverse
entity artist
relation occupation
action find_reverse
entity stripper
relation occupation
['Gian Lorenzo Bernini', 'occupation', 'artist'] ['Gian Lorenzo Bernini', 'occupation', 'stripper']
ASK WHERE { resource:Gian_Lorenzo_Bernini property:occupation resource:artist . resource:Gian_Lorenzo_Bernini property:occupation resource:stripper }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q502895 Q838948 Q15850590
USER
How many people plays a role in around 2 works of art or theatrical genres ?
(c(Q838948)|c(Q15850590),P674,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15850590
value 2
[[{'concept': 'Q838948'}, {'concept': 'Q15850590'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?k ) WHERE { { ?q property:P674 ?c . ?c rdf:type ontology:Q502895 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P674 ?c . ?q rdf:type ontology:Q15850590 . ?c rdf:type ontology:Q502895 } } GROUP BY ?c } . FILTER ( ?k = 2 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation characters
type common name
type work of art
action find_reverse_tuple_counts
relation characters
type common name
type theatrical genre
value 2
[[{'concept': 'work of art'}, {'concept': 'theatrical genre'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?k ) WHERE { { ?q property:characters ?c . ?c rdf:type ontology:common_name . ?q rdf:type ontology:work_of_art } UNION { ?q property:characters ?c . ?q rdf:type ontology:theatrical_genre . ?c rdf:type ontology:common_name } } GROUP BY ?c } . FILTER ( ?k = 2 ) }
[]
common name work of art theatrical genre
SYSTEM
4
Q38370 Q188541 Q9045 Q80823
(c(Q838948)|c(Q15850590),P674,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q838948
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15850590
value 2
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15850590'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?k ) WHERE { { ?q property:P674 ?c . ?c rdf:type ontology:Q502895 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P674 ?c . ?q rdf:type ontology:Q15850590 . ?c rdf:type ontology:Q502895 } } GROUP BY ?c } . FILTER ( ?k = 2 ) }
Henry VIII Chandragupta Maurya Chanakya Anne Boleyn
4
action count
action approx
action union
action find_reverse_tuple_counts
relation characters
type common name
type work of art
action find_reverse_tuple_counts
relation characters
type common name
type theatrical genre
value 2
[[{'concept': 'work of art'}, {'concept': 'theatrical genre'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?k ) WHERE { { ?q property:characters ?c . ?c rdf:type ontology:common_name . ?q rdf:type ontology:work_of_art } UNION { ?q property:characters ?c . ?q rdf:type ontology:theatrical_genre . ?c rdf:type ontology:common_name } } GROUP BY ?c } . FILTER ( ?k = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q15619164
USER
Which abstract beings had max number of people as the dubbing artist ?
(c(Q15619164),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15619164
type Q502895
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?t ( COUNT ( ?n ) AS ?l ) WHERE { ?t rdf:type ontology:Q15619164 . ?n rdf:type ontology:Q502895 . ?t property:P725 ?n } GROUP BY ?t } } . { SELECT DISTINCT ?r ( COUNT ( ?q ) AS ?x ) WHERE { ?r property:P725 ?q . ?r rdf:type ontology:Q15619164 . ?q rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?x = ?b ) }
action argmax
action find_tuple_counts
relation voice actor
type abstract being
type common name
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?t ( COUNT ( ?n ) AS ?l ) WHERE { ?t rdf:type ontology:abstract_being . ?n rdf:type ontology:common_name . ?t property:voice_actor ?n } GROUP BY ?t } } . { SELECT DISTINCT ?r ( COUNT ( ?q ) AS ?x ) WHERE { ?r property:voice_actor ?q . ?r rdf:type ontology:abstract_being . ?q rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?x = ?b ) }
[]
common name abstract being
Q5409355
SYSTEM
Fluttershy
Q5409355
(c(Q15619164),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15619164
type Q502895
[ANSWER] had max number of people as the dubbing artist
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?t ( COUNT ( ?n ) AS ?l ) WHERE { ?t rdf:type ontology:Q15619164 . ?n rdf:type ontology:Q502895 . ?t property:P725 ?n } GROUP BY ?t } } . { SELECT DISTINCT ?r ( COUNT ( ?q ) AS ?x ) WHERE { ?r property:P725 ?q . ?r rdf:type ontology:Q15619164 . ?q rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?x = ?b ) }
Fluttershy
Fluttershy had max number of people as the dubbing artist
Fluttershy
action argmax
action find_tuple_counts
relation voice actor
type abstract being
type common name
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?t ( COUNT ( ?n ) AS ?l ) WHERE { ?t rdf:type ontology:abstract_being . ?n rdf:type ontology:common_name . ?t property:voice_actor ?n } GROUP BY ?t } } . { SELECT DISTINCT ?r ( COUNT ( ?q ) AS ?x ) WHERE { ?r property:voice_actor ?q . ?r rdf:type ontology:abstract_being . ?q rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?x = ?b ) }
[]