Simple Question (Direct)
Simple Question
Q3676179
P106
Q12737077
USER
Which occupations are the professions of Chōhei Kambayashi ?
(Q3676179,P106,c(Q12737077))
action filter_type
action find
entity Q3676179
relation P106
type Q12737077
['Q3676179', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q3676179 property:P106 ?e }
Chōhei Kambayashi
action filter_type
action find
entity Chōhei Kambayashi
relation occupation
type occupation
['Chōhei Kambayashi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Chōhei_Kambayashi property:occupation ?e }
[]
occupation
Q36180 Q6625963 Q18844224
SYSTEM
writer, novelist, science fiction writer
Q36180 Q6625963 Q18844224
(Q3676179,P106,c(Q12737077))
action filter_type
action find
entity Q3676179
relation P106
type Q12737077
The professions of Chōhei Kambayashi are [ANSWERS]
['Q3676179', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q3676179 property:P106 ?e }
writer novelist science fiction writer
The professions of Chōhei Kambayashi are writer, novelist and science fiction writer
writer novelist science fiction writer
action filter_type
action find
entity Chōhei Kambayashi
relation occupation
type occupation
['Chōhei Kambayashi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Chōhei_Kambayashi property:occupation ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3676179
P27
Q15617994
USER
Which administrative territory is Chōhei Kambayashi a civilian of ?
(Q3676179,P27,c(Q15617994))
action filter_type
action find
entity Q3676179
relation P27
type Q15617994
['Q3676179', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q3676179 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Chōhei Kambayashi
action filter_type
action find
entity Chōhei Kambayashi
relation country of citizenship
type designation for an administrative territorial entity
['Chōhei Kambayashi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Chōhei_Kambayashi property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q3676179,P27,c(Q15617994))
action filter_type
action find
entity Q3676179
relation P27
type Q15617994
[ANSWER] is Chōhei Kambayashi a civilian of
['Q3676179', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q3676179 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Japan
Japan is Chōhei Kambayashi a civilian of
Japan
action filter_type
action find
entity Chōhei Kambayashi
relation country of citizenship
type designation for an administrative territorial entity
['Chōhei Kambayashi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Chōhei_Kambayashi property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q34 Q17
P27
Q502895
USER
Which people are a native of Japan and Sweden ?
AND((c(Q502895),P27,Q17), (c(Q502895),P27,Q34))
action filter_type
action intersection
action find_reverse
entity Q17
relation P27
action find_reverse
entity Q34
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q17'], [{'concept': 'Q502895'}, 'P27', 'Q34']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q17 . ?o property:P27 resource:Q34 . ?o rdf:type ontology:Q502895 }
Sweden Japan
action filter_type
action intersection
action find_reverse
entity Japan
relation country of citizenship
action find_reverse
entity Sweden
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Japan'], [{'concept': 'common name'}, 'country of citizenship', 'Sweden']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:Japan . ?o property:country_of_citizenship resource:Sweden . ?o rdf:type ontology:common_name }
[]
common name
Q1294123
SYSTEM
Takashi Naraha
Q1294123
AND((c(Q502895),P27,Q17), (c(Q502895),P27,Q34))
action filter_type
action intersection
action find_reverse
entity Q17
relation P27
action find_reverse
entity Q34
relation P27
type Q502895
[ANSWER] is a native of Japan and Sweden
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q17'], [{'concept': 'Q502895'}, 'P27', 'Q34']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q17 . ?o property:P27 resource:Q34 . ?o rdf:type ontology:Q502895 }
Takashi Naraha
Takashi Naraha is a native of Japan and Sweden
Takashi Naraha
action filter_type
action intersection
action find_reverse
entity Japan
relation country of citizenship
action find_reverse
entity Sweden
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Japan'], [{'concept': 'common name'}, 'country of citizenship', 'Sweden']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:Japan . ?o property:country_of_citizenship resource:Sweden . ?o rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q18534408
P921
Q12737077 Q191067 Q838948
USER
How many occupations were greater number of articles and works of art mainly about than member of the Victorian Legislative Assembly ?
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q18534408
relation P921
type Q191067
type Q838948
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) ?l WHERE { { ?e property:P921 ?l . ?e rdf:type ontology:Q838948 . ?l rdf:type ontology:Q12737077 } UNION { ?e property:P921 ?l . ?e rdf:type ontology:Q191067 . ?l rdf:type ontology:Q12737077 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:P921 resource:Q18534408 . { VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q191067 ) } . ?b rdf:type ?j } } } . FILTER ( ?f > ?v ) }
member of the Victorian Legislative Assembly
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity member of the Victorian Legislative Assembly
relation main subject
type article
type work of art
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) ?l WHERE { { ?e property:main_subject ?l . ?e rdf:type ontology:work_of_art . ?l rdf:type ontology:occupation } UNION { ?e property:main_subject ?l . ?e rdf:type ontology:article . ?l rdf:type ontology:occupation } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:main_subject resource:member_of_the_Victorian_Legislative_Assembly . { VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:article ) } . ?b rdf:type ?j } } } . FILTER ( ?f > ?v ) }
[]
occupation article work of art
SYSTEM
28
Q172907 Q15637082 Q911554 Q39631 Q1124183 Q11631 Q33999 Q36180 Q7358 Q1930187 Q9402 Q2961580 Q101539 Q316070 Q510373 Q205375 Q164236 Q152002 Q936969 Q16746569 Q16003605 Q245068 Q33231 Q732358 Q2095549 Q182436 Q1674312 Q16003532
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q18534408
relation P921
type Q191067
type Q838948
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) ?l WHERE { { ?e property:P921 ?l . ?e rdf:type ontology:Q838948 . ?l rdf:type ontology:Q12737077 } UNION { ?e property:P921 ?l . ?e rdf:type ontology:Q191067 . ?l rdf:type ontology:Q12737077 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:P921 resource:Q18534408 . { VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q191067 ) } . ?b rdf:type ?j } } } . FILTER ( ?f > ?v ) }
praetor industrialist business magnate physician lumberjack astronaut actor writer clown journalist ninja taxi driver flight attendant Fletcher Christian Lord High Steward inventor war correspondent pastor nanny high school student elementary school student comedian photographer Nomarch aviator librarian rag-and-bone man middle school student
28
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity member of the Victorian Legislative Assembly
relation main subject
type article
type work of art
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) ?l WHERE { { ?e property:main_subject ?l . ?e rdf:type ontology:work_of_art . ?l rdf:type ontology:occupation } UNION { ?e property:main_subject ?l . ?e rdf:type ontology:article . ?l rdf:type ontology:occupation } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:main_subject resource:member_of_the_Victorian_Legislative_Assembly . { VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:article ) } . ?b rdf:type ?j } } } . FILTER ( ?f > ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1708232
P921
Q12737077 Q191067 Q838948
USER
And how about medallist?
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1708232
relation P921
type Q191067
type Q838948
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?m WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:Q191067 ) ( ontology:Q838948 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:P921 resource:Q1708232 . { { ?r rdf:type ontology:Q191067 } UNION { ?r rdf:type ontology:Q838948 } } } } . FILTER ( ?g > ?o ) }
medallist
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity medallist
relation main subject
type article
type work of art
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?m WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:article ) ( ontology:work_of_art ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:main_subject resource:medallist . { { ?r rdf:type ontology:article } UNION { ?r rdf:type ontology:work_of_art } } } } . FILTER ( ?g > ?o ) }
[]
occupation article work of art
SYSTEM
28
Q172907 Q15637082 Q911554 Q39631 Q1124183 Q11631 Q33999 Q36180 Q7358 Q1930187 Q9402 Q2961580 Q101539 Q316070 Q510373 Q205375 Q164236 Q152002 Q936969 Q16746569 Q16003605 Q245068 Q33231 Q732358 Q2095549 Q182436 Q1674312 Q16003532
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1708232
relation P921
type Q191067
type Q838948
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?m WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:Q191067 ) ( ontology:Q838948 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:P921 resource:Q1708232 . { { ?r rdf:type ontology:Q191067 } UNION { ?r rdf:type ontology:Q838948 } } } } . FILTER ( ?g > ?o ) }
praetor industrialist business magnate physician lumberjack astronaut actor writer clown journalist ninja taxi driver flight attendant Fletcher Christian Lord High Steward inventor war correspondent pastor nanny high school student elementary school student comedian photographer Nomarch aviator librarian rag-and-bone man middle school student
28
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity medallist
relation main subject
type article
type work of art
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?m WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:article ) ( ontology:work_of_art ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:main_subject resource:medallist . { { ?r rdf:type ontology:article } UNION { ?r rdf:type ontology:work_of_art } } } } . FILTER ( ?g > ?o ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1294123
P135
Q483394
USER
Which genre did Takashi Naraha belong to
(Q1294123,P135,c(Q483394))
action filter_type
action find
entity Q1294123
relation P135
type Q483394
['Q1294123', 'P135', {'concept': 'Q483394'}]
SELECT DISTINCT ?g WHERE { resource:Q1294123 property:P135 ?g . ?g rdf:type ontology:Q483394 }
Takashi Naraha
action filter_type
action find
entity Takashi Naraha
relation movement
type genre
['Takashi Naraha', 'movement', {'concept': 'genre'}]
SELECT DISTINCT ?g WHERE { resource:Takashi_Naraha property:movement ?g . ?g rdf:type ontology:genre }
[]
genre
Q128115
SYSTEM
abstract art
Q128115
(Q1294123,P135,c(Q483394))
action filter_type
action find
entity Q1294123
relation P135
type Q483394
Takashi Naraha belonged to [ANSWER]
['Q1294123', 'P135', {'concept': 'Q483394'}]
SELECT DISTINCT ?g WHERE { resource:Q1294123 property:P135 ?g . ?g rdf:type ontology:Q483394 }
abstract art
Takashi Naraha belonged to abstract art
abstract art
action filter_type
action find
entity Takashi Naraha
relation movement
type genre
['Takashi Naraha', 'movement', {'concept': 'genre'}]
SELECT DISTINCT ?g WHERE { resource:Takashi_Naraha property:movement ?g . ?g rdf:type ontology:genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1294123
P19
Q56061
USER
Where was that person born ?
(Q128115,P19,c(Q56061))
action filter_type
action find
entity Q1294123
relation P19
type Q56061
['Q128115', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1294123 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Takashi Naraha
action filter_type
action find
entity Takashi Naraha
relation place of birth
type administrative territorial entity
['abstract art', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Takashi_Naraha property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
(Q128115,P19,c(Q56061))
action filter_type
action find
entity Q1294123
relation P19
type Q56061
That person was born in [ANSWER]
['Q128115', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1294123 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Tokyo
That person was born in Tokyo
Tokyo
action filter_type
action find
entity Takashi Naraha
relation place of birth
type administrative territorial entity
['abstract art', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Takashi_Naraha property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6778401
Q56061
USER
And what about Marvin Kratter?
(Q6778401,P19,c(Q56061))
action filter_type
action find
entity Q6778401
relation P19
type Q56061
['Q6778401', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q6778401 property:P19 ?l }
Marvin Kratter
action filter_type
action find
entity Marvin Kratter
relation place of birth
type administrative territorial entity
['Marvin Kratter', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Marvin_Kratter property:place_of_birth ?l }
[]
administrative territorial entity
Q18419
SYSTEM
Brooklyn
Q18419
(Q6778401,P19,c(Q56061))
action filter_type
action find
entity Q6778401
relation P19
type Q56061
[ANSWER]
['Q6778401', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q6778401 property:P19 ?l }
Brooklyn
Brooklyn
action filter_type
action find
entity Marvin Kratter
relation place of birth
type administrative territorial entity
['Marvin Kratter', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Marvin_Kratter property:place_of_birth ?l }
[]