Simple Question (Direct)
Simple Question
Q11511306
P102
Q7210356
USER
Which party is Takashi Hayakawa affiliated with ?
(Q11511306,P102,c(Q7210356))
action filter_type
action find
entity Q11511306
relation P102
type Q7210356
['Q11511306', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q11511306 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Takashi Hayakawa
action filter_type
action find
entity Takashi Hayakawa
relation member of political party
type political organization
['Takashi Hayakawa', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Takashi_Hayakawa property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
political organization
Q232595
SYSTEM
Liberal Democratic Party
Q232595
(Q11511306,P102,c(Q7210356))
action filter_type
action find
entity Q11511306
relation P102
type Q7210356
Takashi Hayakawa is affiliated with [ANSWER]
['Q11511306', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q11511306 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Liberal Democratic Party
Takashi Hayakawa is affiliated with Liberal Democratic Party
Liberal Democratic Party
action filter_type
action find
entity Takashi Hayakawa
relation member of political party
type political organization
['Takashi Hayakawa', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Takashi_Hayakawa property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11511306
P734
Q82799
USER
Who is associated with that person ?
(Q232595,P734,c(Q82799))
action filter_type
action find
entity Q11511306
relation P734
type Q82799
['Q232595', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q11511306 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Takashi Hayakawa
action filter_type
action find
entity Takashi Hayakawa
relation family name
type name
['Liberal Democratic Party', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Takashi_Hayakawa property:family_name ?j . ?j rdf:type ontology:name }
[]
name
Q21507940
SYSTEM
Hayakawa
Q21507940
(Q232595,P734,c(Q82799))
action filter_type
action find
entity Q11511306
relation P734
type Q82799
[ANSWER] is associated with that person
['Q232595', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q11511306 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Hayakawa
Hayakawa is associated with that person
Hayakawa
action filter_type
action find
entity Takashi Hayakawa
relation family name
type name
['Liberal Democratic Party', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Takashi_Hayakawa property:family_name ?j . ?j rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q6555605 Q11511306
P734
Q82799
USER
Or Lionel D. Carson?
OR((Q11511306,P734,c(Q82799)), (Q6555605,P734,c(Q82799)))
action filter_type
action union
action find
entity Q11511306
relation P734
action find
entity Q6555605
relation P734
type Q82799
{'OR': [['Q11511306', 'P734', {'concept': 'Q82799'}], ['Q6555605', 'P734', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q11511306 property:P734 ?m } UNION { resource:Q6555605 property:P734 ?m } } . ?m rdf:type ontology:Q82799 }
Lionel D. Carson Takashi Hayakawa
action filter_type
action union
action find
entity Takashi Hayakawa
relation family name
action find
entity Lionel D. Carson
relation family name
type name
{'OR': [['Takashi Hayakawa', 'family name', {'concept': 'name'}], ['Lionel D. Carson', 'family name', {'concept': 'name'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Takashi_Hayakawa property:family_name ?m } UNION { resource:Lionel_D._Carson property:family_name ?m } } . ?m rdf:type ontology:name }
[]
name
Q21507940 Q15079696
SYSTEM
Hayakawa, Carson
Q21507940 Q15079696
OR((Q11511306,P734,c(Q82799)), (Q6555605,P734,c(Q82799)))
action filter_type
action union
action find
entity Q11511306
relation P734
action find
entity Q6555605
relation P734
type Q82799
[ANSWERS]
{'OR': [['Q11511306', 'P734', {'concept': 'Q82799'}], ['Q6555605', 'P734', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q11511306 property:P734 ?m } UNION { resource:Q6555605 property:P734 ?m } } . ?m rdf:type ontology:Q82799 }
Hayakawa Carson
Hayakawa Carson
action filter_type
action union
action find
entity Takashi Hayakawa
relation family name
action find
entity Lionel D. Carson
relation family name
type name
{'OR': [['Takashi Hayakawa', 'family name', {'concept': 'name'}], ['Lionel D. Carson', 'family name', {'concept': 'name'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Takashi_Hayakawa property:family_name ?m } UNION { resource:Lionel_D._Carson property:family_name ?m } } . ?m rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
How many languages are atmost 427 names composed in ?
(c(Q82799),P407,c(Q34770))
action count
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 427
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?n ) WHERE { ?w property:P407 ?j . ?j rdf:type ontology:Q34770 . ?w rdf:type ontology:Q82799 } GROUP BY ?j } . FILTER ( ?n <= 427 ) }
action count
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 427
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?n ) WHERE { ?w property:language_of_work_or_name ?j . ?j rdf:type ontology:language . ?w rdf:type ontology:name } GROUP BY ?j } . FILTER ( ?n <= 427 ) }
[]
language name
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action count
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 427
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?n ) WHERE { ?w property:P407 ?j . ?j rdf:type ontology:Q34770 . ?w rdf:type ontology:Q82799 } GROUP BY ?j } . FILTER ( ?n <= 427 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 427
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?n ) WHERE { ?w property:language_of_work_or_name ?j . ?j rdf:type ontology:language . ?w rdf:type ontology:name } GROUP BY ?j } . FILTER ( ?n <= 427 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
How many languages are approximately 132 names composed in ?
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 132
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?b ) WHERE { ?f rdf:type ontology:Q34770 . ?m rdf:type ontology:Q82799 . ?m property:P407 ?f } GROUP BY ?f } . FILTER ( ?b = 132 ) }
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 132
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?b ) WHERE { ?f rdf:type ontology:language . ?m rdf:type ontology:name . ?m property:language_of_work_or_name ?f } GROUP BY ?f } . FILTER ( ?b = 132 ) }
[]
language name
SYSTEM
2
Q1321 Q652
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 132
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?b ) WHERE { ?f rdf:type ontology:Q34770 . ?m rdf:type ontology:Q82799 . ?m property:P407 ?f } GROUP BY ?f } . FILTER ( ?b = 132 ) }
Spanish Italian
2
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 132
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?b ) WHERE { ?f rdf:type ontology:language . ?m rdf:type ontology:name . ?m property:language_of_work_or_name ?f } GROUP BY ?f } . FILTER ( ?b = 132 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q340169 Q18783400
USER
Which names are expressed in max number of medias and genres of sculpture ?
(c(Q340169)|c(Q18783400),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
[[{'concept': 'Q340169'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?o WHERE { VALUES ( ?z ) { ( ontology:Q340169 ) ( ontology:Q18783400 ) } . ?b rdf:type ?z } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) ?p WHERE { { ?v property:P180 ?p . ?p rdf:type ontology:Q82799 . ?v rdf:type ontology:Q340169 } UNION { ?p rdf:type ontology:Q82799 . ?v rdf:type ontology:Q18783400 . ?v property:P180 ?p } } GROUP BY ?p } . FILTER ( ?f = ?t ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
[[{'concept': 'media'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?o WHERE { VALUES ( ?z ) { ( ontology:media ) ( ontology:genre_of_sculpture ) } . ?b rdf:type ?z } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) ?p WHERE { { ?v property:depicts ?p . ?p rdf:type ontology:name . ?v rdf:type ontology:media } UNION { ?p rdf:type ontology:name . ?v rdf:type ontology:genre_of_sculpture . ?v property:depicts ?p } } GROUP BY ?p } . FILTER ( ?f = ?t ) }
[]
name media genre of sculpture
Q726
SYSTEM
horse
Q726
(c(Q340169)|c(Q18783400),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
[ANSWER] is expressed in max number of medias and genres of sculpture
[[{'concept': 'Q340169'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?o WHERE { VALUES ( ?z ) { ( ontology:Q340169 ) ( ontology:Q18783400 ) } . ?b rdf:type ?z } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) ?p WHERE { { ?v property:P180 ?p . ?p rdf:type ontology:Q82799 . ?v rdf:type ontology:Q340169 } UNION { ?p rdf:type ontology:Q82799 . ?v rdf:type ontology:Q18783400 . ?v property:P180 ?p } } GROUP BY ?p } . FILTER ( ?f = ?t ) }
horse
Horse is expressed in max number of medias and genres of sculpture
horse
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
[[{'concept': 'media'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?o WHERE { VALUES ( ?z ) { ( ontology:media ) ( ontology:genre_of_sculpture ) } . ?b rdf:type ?z } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) ?p WHERE { { ?v property:depicts ?p . ?p rdf:type ontology:name . ?v rdf:type ontology:media } UNION { ?p rdf:type ontology:name . ?v rdf:type ontology:genre_of_sculpture . ?v property:depicts ?p } } GROUP BY ?p } . FILTER ( ?f = ?t ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q726 Q4481165
P921
Q838948
USER
Was Phar Lap mainly based on that name ?
(Q4481165,P921,Q726)
action is_in
entity Q726
action find
entity Q4481165
relation P921
['Q4481165', 'P921', 'Q726']
ASK WHERE { resource:Q4481165 property:P921 resource:Q726 }
horse Phar Lap
action is_in
entity horse
action find
entity Phar Lap
relation main subject
['Phar Lap', 'main subject', 'horse']
ASK WHERE { resource:Phar_Lap property:main_subject resource:horse }
[]
work of art
SYSTEM
YES
(Q4481165,P921,Q726)
action is_in
entity Q726
action find
entity Q4481165
relation P921
[ANSWER]
['Q4481165', 'P921', 'Q726']
ASK WHERE { resource:Q4481165 property:P921 resource:Q726 }
Yes
action is_in
entity horse
action find
entity Phar Lap
relation main subject
['Phar Lap', 'main subject', 'horse']
ASK WHERE { resource:Phar_Lap property:main_subject resource:horse }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q11511306 Q17
P27
Q15617994
USER
Is Japan the country of citizenship of Takashi Hayakawa ?
(Q11511306,P27,Q17)
action is_in
entity Q17
action find
entity Q11511306
relation P27
['Q11511306', 'P27', 'Q17']
ASK WHERE { resource:Q11511306 property:P27 resource:Q17 }
Takashi Hayakawa Japan
action is_in
entity Japan
action find
entity Takashi Hayakawa
relation country of citizenship
['Takashi Hayakawa', 'country of citizenship', 'Japan']
ASK WHERE { resource:Takashi_Hayakawa property:country_of_citizenship resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q11511306,P27,Q17)
action is_in
entity Q17
action find
entity Q11511306
relation P27
[ANSWER]
['Q11511306', 'P27', 'Q17']
ASK WHERE { resource:Q11511306 property:P27 resource:Q17 }
Yes
action is_in
entity Japan
action find
entity Takashi Hayakawa
relation country of citizenship
['Takashi Hayakawa', 'country of citizenship', 'Japan']
ASK WHERE { resource:Takashi_Hayakawa property:country_of_citizenship resource:Japan }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q232595 Q17
P17
Q15617994
USER
Is Liberal Democratic Party situated in Japan ?
(Q232595,P17,Q17)
action is_in
entity Q17
action find
entity Q232595
relation P17
['Q232595', 'P17', 'Q17']
ASK WHERE { resource:Q232595 property:P17 resource:Q17 }
Liberal Democratic Party Japan
action is_in
entity Japan
action find
entity Liberal Democratic Party
relation country
['Liberal Democratic Party', 'country', 'Japan']
ASK WHERE { resource:Liberal_Democratic_Party property:country resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q232595,P17,Q17)
action is_in
entity Q17
action find
entity Q232595
relation P17
[ANSWER]
['Q232595', 'P17', 'Q17']
ASK WHERE { resource:Q232595 property:P17 resource:Q17 }
Yes
action is_in
entity Japan
action find
entity Liberal Democratic Party
relation country
['Liberal Democratic Party', 'country', 'Japan']
ASK WHERE { resource:Liberal_Democratic_Party property:country resource:Japan }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q11511306 Q17
P27
Q15617994
USER
Is Takashi Hayakawa a civilian of Japan ?
(Q11511306,P27,Q17)
action is_in
entity Q17
action find
entity Q11511306
relation P27
['Q11511306', 'P27', 'Q17']
ASK WHERE { resource:Q11511306 property:P27 resource:Q17 }
Takashi Hayakawa Japan
action is_in
entity Japan
action find
entity Takashi Hayakawa
relation country of citizenship
['Takashi Hayakawa', 'country of citizenship', 'Japan']
ASK WHERE { resource:Takashi_Hayakawa property:country_of_citizenship resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q11511306,P27,Q17)
action is_in
entity Q17
action find
entity Q11511306
relation P27
[ANSWER]
['Q11511306', 'P27', 'Q17']
ASK WHERE { resource:Q11511306 property:P27 resource:Q17 }
Yes
action is_in
entity Japan
action find
entity Takashi Hayakawa
relation country of citizenship
['Takashi Hayakawa', 'country of citizenship', 'Japan']
ASK WHERE { resource:Takashi_Hayakawa property:country_of_citizenship resource:Japan }
[]