Simple Question (Direct)
Simple Question
Q443762
P106
Q12737077
USER
What does Hinako Sugiura do for a living ?
(Q443762,P106,c(Q12737077))
action filter_type
action find
entity Q443762
relation P106
type Q12737077
['Q443762', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q443762 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Hinako Sugiura
action filter_type
action find
entity Hinako Sugiura
relation occupation
type occupation
['Hinako Sugiura', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Hinako_Sugiura property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q191633
SYSTEM
mangaka
Q191633
(Q443762,P106,c(Q12737077))
action filter_type
action find
entity Q443762
relation P106
type Q12737077
Hinako Sugiura does the [ANSWER] for a living
['Q443762', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q443762 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
mangaka
Hinako Sugiura does the mangaka for a living
mangaka
action filter_type
action find
entity Hinako Sugiura
relation occupation
type occupation
['Hinako Sugiura', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Hinako_Sugiura property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q443762
P26
Q502895
USER
Which person is the spouse of that one ?
(Q191633,P26,c(Q502895))
action filter_type
action find
entity Q443762
relation P26
type Q502895
['Q191633', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q443762 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Hinako Sugiura
action filter_type
action find
entity Hinako Sugiura
relation spouse
type common name
['mangaka', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Hinako_Sugiura property:spouse ?e . ?e rdf:type ontology:common_name }
[]
common name
Q11618411
SYSTEM
Hiroshi Aramata
Q11618411
(Q191633,P26,c(Q502895))
action filter_type
action find
entity Q443762
relation P26
type Q502895
[ANSWER] is the spouse of that one
['Q191633', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q443762 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Hiroshi Aramata
Hiroshi Aramata is the spouse of that one
Hiroshi Aramata
action filter_type
action find
entity Hinako Sugiura
relation spouse
type common name
['mangaka', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Hinako_Sugiura property:spouse ?e . ?e rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q11618411 Q7517210
P50
Q838948
USER
Was Sim-Feng Shui written by that person ?
(Q7517210,P50,Q11618411)
action is_in
entity Q11618411
action find
entity Q7517210
relation P50
['Q7517210', 'P50', 'Q11618411']
ASK WHERE { resource:Q7517210 property:P50 resource:Q11618411 }
Hiroshi Aramata Sim-Feng Shui
action is_in
entity Hiroshi Aramata
action find
entity Sim-Feng Shui
relation author
['Sim-Feng Shui', 'author', 'Hiroshi Aramata']
ASK WHERE { resource:Sim-Feng_Shui property:author resource:Hiroshi_Aramata }
[]
work of art
SYSTEM
YES
(Q7517210,P50,Q11618411)
action is_in
entity Q11618411
action find
entity Q7517210
relation P50
[ANSWER]
['Q7517210', 'P50', 'Q11618411']
ASK WHERE { resource:Q7517210 property:P50 resource:Q11618411 }
Yes
action is_in
entity Hiroshi Aramata
action find
entity Sim-Feng Shui
relation author
['Sim-Feng Shui', 'author', 'Hiroshi Aramata']
ASK WHERE { resource:Sim-Feng_Shui property:author resource:Hiroshi_Aramata }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q443762 Q1490
P19
Q56061
USER
Was Tokyo Hinako Sugiura born ?
(Q443762,P19,Q1490)
action is_in
entity Q1490
action find
entity Q443762
relation P19
['Q443762', 'P19', 'Q1490']
ASK WHERE { resource:Q443762 property:P19 resource:Q1490 }
Hinako Sugiura Tokyo
action is_in
entity Tokyo
action find
entity Hinako Sugiura
relation place of birth
['Hinako Sugiura', 'place of birth', 'Tokyo']
ASK WHERE { resource:Hinako_Sugiura property:place_of_birth resource:Tokyo }
[]
administrative territorial entity
SYSTEM
YES
(Q443762,P19,Q1490)
action is_in
entity Q1490
action find
entity Q443762
relation P19
[ANSWER]
['Q443762', 'P19', 'Q1490']
ASK WHERE { resource:Q443762 property:P19 resource:Q1490 }
Yes
action is_in
entity Tokyo
action find
entity Hinako Sugiura
relation place of birth
['Hinako Sugiura', 'place of birth', 'Tokyo']
ASK WHERE { resource:Hinako_Sugiura property:place_of_birth resource:Tokyo }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q191633 Q17 Q552563
P17
Q15617994
USER
Is mangaka located in Japan and Tensbüttel-Röst ?
(Q191633,P17,Q17) (Q191633,P17,Q552563)
action is_in
entity Q191633
action intersection
action find_reverse
entity Q17
relation P17
action find_reverse
entity Q552563
relation P17
['Q191633', 'P17', 'Q17'] ['Q191633', 'P17', 'Q552563']
ASK WHERE { resource:Q191633 property:P17 resource:Q17 . resource:Q191633 property:P17 resource:Q552563 }
mangaka Japan Tensbüttel-Röst
action is_in
entity mangaka
action intersection
action find_reverse
entity Japan
relation country
action find_reverse
entity Tensbüttel-Röst
relation country
['mangaka', 'country', 'Japan'] ['mangaka', 'country', 'Tensbüttel-Röst']
ASK WHERE { resource:mangaka property:country resource:Japan . resource:mangaka property:country resource:Tensbüttel-Röst }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q191633,P17,Q17) (Q191633,P17,Q552563)
action is_in
entity Q191633
action intersection
action find_reverse
entity Q17
relation P17
action find_reverse
entity Q552563
relation P17
[ANSWER]
['Q191633', 'P17', 'Q17'] ['Q191633', 'P17', 'Q552563']
ASK WHERE { resource:Q191633 property:P17 resource:Q17 . resource:Q191633 property:P17 resource:Q552563 }
YES and NO respectively
action is_in
entity mangaka
action intersection
action find_reverse
entity Japan
relation country
action find_reverse
entity Tensbüttel-Röst
relation country
['mangaka', 'country', 'Japan'] ['mangaka', 'country', 'Tensbüttel-Röst']
ASK WHERE { resource:mangaka property:country resource:Japan . resource:mangaka property:country resource:Tensbüttel-Röst }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q191633
P101
Q502895
USER
Who works in the domain of that occupation ?
action filter_type
action find_reverse
entity Q191633
relation P101
type Q502895
SELECT DISTINCT ?r WHERE { ?r property:P101 resource:Q191633 . ?r rdf:type ontology:Q502895 }
mangaka
action filter_type
action find_reverse
entity mangaka
relation field of work
type common name
SELECT DISTINCT ?r WHERE { ?r property:field_of_work resource:mangaka . ?r rdf:type ontology:common_name }
[]
common name
Q208582
SYSTEM
Akira Toriyama
Q208582
action filter_type
action find_reverse
entity Q191633
relation P101
type Q502895
[ANSWER] works in the domain of that occupation
SELECT DISTINCT ?r WHERE { ?r property:P101 resource:Q191633 . ?r rdf:type ontology:Q502895 }
Akira Toriyama
Akira Toriyama works in the domain of that occupation
Akira Toriyama
action filter_type
action find_reverse
entity mangaka
relation field of work
type common name
SELECT DISTINCT ?r WHERE { ?r property:field_of_work resource:mangaka . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q208582 Q586410
P58
Q838948
USER
Does Dragon Ball: The Path to Power have that person as screenwriter ?
(Q586410,P58,Q208582)
action is_in
entity Q208582
action find
entity Q586410
relation P58
['Q586410', 'P58', 'Q208582']
ASK WHERE { resource:Q586410 property:P58 resource:Q208582 }
Akira Toriyama Dragon Ball: The Path to Power
action is_in
entity Akira Toriyama
action find
entity Dragon Ball: The Path to Power
relation screenwriter
['Dragon Ball: The Path to Power', 'screenwriter', 'Akira Toriyama']
ASK WHERE { resource:Dragon_Ball:_The_Path_to_Power property:screenwriter resource:Akira_Toriyama }
[]
work of art
SYSTEM
YES
(Q586410,P58,Q208582)
action is_in
entity Q208582
action find
entity Q586410
relation P58
[ANSWER]
['Q586410', 'P58', 'Q208582']
ASK WHERE { resource:Q586410 property:P58 resource:Q208582 }
Yes
action is_in
entity Akira Toriyama
action find
entity Dragon Ball: The Path to Power
relation screenwriter
['Dragon Ball: The Path to Power', 'screenwriter', 'Akira Toriyama']
ASK WHERE { resource:Dragon_Ball:_The_Path_to_Power property:screenwriter resource:Akira_Toriyama }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q11671514 Q208582
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Akira Toriyama and Hiroshi Takahashi ?
AND((Q208582,P27,c(Q15617994)), (Q11671514,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q208582
relation P27
action find
entity Q11671514
relation P27
type Q15617994
{'AND': [['Q208582', 'P27', {'concept': 'Q15617994'}], ['Q11671514', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q208582 property:P27 ?j . resource:Q11671514 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Hiroshi Takahashi Akira Toriyama
action filter_type
action intersection
action find
entity Akira Toriyama
relation country of citizenship
action find
entity Hiroshi Takahashi
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Akira Toriyama', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hiroshi Takahashi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Akira_Toriyama property:country_of_citizenship ?j . resource:Hiroshi_Takahashi property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
AND((Q208582,P27,c(Q15617994)), (Q11671514,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q208582
relation P27
action find
entity Q11671514
relation P27
type Q15617994
Of [ANSWER] is the countries of citizenship of Akira Toriyama and Hiroshi Takahashi
{'AND': [['Q208582', 'P27', {'concept': 'Q15617994'}], ['Q11671514', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q208582 property:P27 ?j . resource:Q11671514 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Japan
Of Japan is the countries of citizenship of Akira Toriyama and Hiroshi Takahashi
Japan
action filter_type
action intersection
action find
entity Akira Toriyama
relation country of citizenship
action find
entity Hiroshi Takahashi
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Akira Toriyama', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hiroshi Takahashi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Akira_Toriyama property:country_of_citizenship ?j . resource:Hiroshi_Takahashi property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11671514
P734
Q82799
USER
Which name is associated with Hiroshi Takahashi ?
(Q17,P734,c(Q82799))
action filter_type
action find
entity Q11671514
relation P734
type Q82799
['Q17', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q11671514 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Hiroshi Takahashi
action filter_type
action find
entity Hiroshi Takahashi
relation family name
type name
['Japan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Hiroshi_Takahashi property:family_name ?z . ?z rdf:type ontology:name }
[]
name
Q16884188
SYSTEM
Takahashi
Q16884188
(Q17,P734,c(Q82799))
action filter_type
action find
entity Q11671514
relation P734
type Q82799
[ANSWER] is associated with Hiroshi [ANSWER]
['Q17', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q11671514 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Takahashi
Takahashi is associated with Hiroshi Takahashi
Takahashi
action filter_type
action find
entity Hiroshi Takahashi
relation family name
type name
['Japan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Hiroshi_Takahashi property:family_name ?z . ?z rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q2472587 Q2221906 Q82799
USER
Which names are named after max number of peoples or geographic locations ?
(c(Q82799),P138,c(Q2472587)|c(Q2221906))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q2472587
action find_tuple_counts
relation P138
type Q82799
type Q2221906
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q2472587'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?e ) { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?k ) WHERE { { ?s property:P138 ?u . ?s rdf:type ontology:Q82799 . ?u rdf:type ontology:Q2472587 } UNION { ?s property:P138 ?u . ?s rdf:type ontology:Q82799 . ?u rdf:type ontology:Q2221906 } } GROUP BY ?s } } . FILTER ( ?w = ?e ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?w ) WHERE { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2221906 ) ( ontology:Q2472587 ) } } GROUP BY ?h } }
action argmax
action union
action find_tuple_counts
relation named after
type name
type people
action find_tuple_counts
relation named after
type name
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'people'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?e ) { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?k ) WHERE { { ?s property:named_after ?u . ?s rdf:type ontology:name . ?u rdf:type ontology:people } UNION { ?s property:named_after ?u . ?s rdf:type ontology:name . ?u rdf:type ontology:geographic_location } } GROUP BY ?s } } . FILTER ( ?w = ?e ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?w ) WHERE { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:geographic_location ) ( ontology:people ) } } GROUP BY ?h } }
[]
people geographic location name
Q21493520 Q20027829 Q22922124
SYSTEM
Bergmann, Saxon, von Mecklenburg-Schwerin
Q21493520 Q20027829 Q22922124
(c(Q82799),P138,c(Q2472587)|c(Q2221906))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q2472587
action find_tuple_counts
relation P138
type Q82799
type Q2221906
[ANSWERS] are named after max number of peoples or geographic locations
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q2472587'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?e ) { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?k ) WHERE { { ?s property:P138 ?u . ?s rdf:type ontology:Q82799 . ?u rdf:type ontology:Q2472587 } UNION { ?s property:P138 ?u . ?s rdf:type ontology:Q82799 . ?u rdf:type ontology:Q2221906 } } GROUP BY ?s } } . FILTER ( ?w = ?e ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?w ) WHERE { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2221906 ) ( ontology:Q2472587 ) } } GROUP BY ?h } }
Bergmann Saxon von Mecklenburg-Schwerin
Bergmann, Saxon and von Mecklenburg-Schwerin are named after max number of peoples or geographic locations
Bergmann Saxon von Mecklenburg-Schwerin
action argmax
action union
action find_tuple_counts
relation named after
type name
type people
action find_tuple_counts
relation named after
type name
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'people'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?e ) { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?k ) WHERE { { ?s property:named_after ?u . ?s rdf:type ontology:name . ?u rdf:type ontology:people } UNION { ?s property:named_after ?u . ?s rdf:type ontology:name . ?u rdf:type ontology:geographic_location } } GROUP BY ?s } } . FILTER ( ?w = ?e ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?w ) WHERE { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:geographic_location ) ( ontology:people ) } } GROUP BY ?h } }
[]