Simple Question (Direct)
Simple Question
Q11388678
P69
Q3918
USER
What is the university where Noboru Kojima was educated ?
(Q11388678,P69,c(Q3918))
action filter_type
action find
entity Q11388678
relation P69
type Q3918
['Q11388678', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q3918 . resource:Q11388678 property:P69 ?a }
Noboru Kojima
action filter_type
action find
entity Noboru Kojima
relation educated at
type university
['Noboru Kojima', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:university . resource:Noboru_Kojima property:educated_at ?a }
[]
university
Q7842
SYSTEM
University of Tokyo
Q7842
(Q11388678,P69,c(Q3918))
action filter_type
action find
entity Q11388678
relation P69
type Q3918
The university Noboru Kojima was educated is the [ANSWER]
['Q11388678', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q3918 . resource:Q11388678 property:P69 ?a }
University of Tokyo
The university Noboru Kojima was educated is the University of Tokyo
University of Tokyo
action filter_type
action find
entity Noboru Kojima
relation educated at
type university
['Noboru Kojima', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:university . resource:Noboru_Kojima property:educated_at ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11388678
P106
Q12737077
USER
What do that person do for a living ?
(Q7842,P106,c(Q12737077))
action filter_type
action find
entity Q11388678
relation P106
type Q12737077
['Q7842', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q11388678 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Noboru Kojima
action filter_type
action find
entity Noboru Kojima
relation occupation
type occupation
['University of Tokyo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Noboru_Kojima property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q1930187 Q6430706 Q6625963
SYSTEM
journalist, critic, novelist
Q1930187 Q6430706 Q6625963
(Q7842,P106,c(Q12737077))
action filter_type
action find
entity Q11388678
relation P106
type Q12737077
[ANSWERS] for a living that person do
['Q7842', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q11388678 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
journalist critic novelist
Journalist, critic and novelist for a living that person do
journalist critic novelist
action filter_type
action find
entity Noboru Kojima
relation occupation
type occupation
['University of Tokyo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Noboru_Kojima property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q14137000 Q11388678
P27 P17
Q15617994
USER
Which administrative territories are Noboru Kojima an inhabitant of or do Bergsliens gate belong to ?
OR((Q11388678,P27,c(Q15617994)), (Q14137000,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q11388678
relation P27
action find
entity Q14137000
relation P17
type Q15617994
{'OR': [['Q11388678', 'P27', {'concept': 'Q15617994'}], ['Q14137000', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q11388678 property:P27 ?r } UNION { resource:Q14137000 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Bergsliens gate Noboru Kojima
action filter_type
action union
action find
entity Noboru Kojima
relation country of citizenship
action find
entity Bergsliens gate
relation country
type designation for an administrative territorial entity
{'OR': [['Noboru Kojima', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Bergsliens gate', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Noboru_Kojima property:country_of_citizenship ?r } UNION { resource:Bergsliens_gate property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q17
SYSTEM
Norway, Japan
Q20 Q17
OR((Q11388678,P27,c(Q15617994)), (Q14137000,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q11388678
relation P27
action find
entity Q14137000
relation P17
type Q15617994
[ANSWERS] are Noboru Kojima an inhabitant of or do Bergsliens gate belong to
{'OR': [['Q11388678', 'P27', {'concept': 'Q15617994'}], ['Q14137000', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q11388678 property:P27 ?r } UNION { resource:Q14137000 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Norway Japan
Norway and Japan are Noboru Kojima an inhabitant of or do Bergsliens gate belong to
Norway Japan
action filter_type
action union
action find
entity Noboru Kojima
relation country of citizenship
action find
entity Bergsliens gate
relation country
type designation for an administrative territorial entity
{'OR': [['Noboru Kojima', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Bergsliens gate', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Noboru_Kojima property:country_of_citizenship ?r } UNION { resource:Bergsliens_gate property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5756639 Q7842
P17
Q15617994
USER
Which administrative territories are University of Tokyo or High School of Performing Arts a part of ?
OR((Q7842,P17,c(Q15617994)), (Q5756639,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7842
relation P17
action find
entity Q5756639
relation P17
type Q15617994
{'OR': [['Q7842', 'P17', {'concept': 'Q15617994'}], ['Q5756639', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q7842 property:P17 ?h } UNION { resource:Q5756639 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
High School of Performing Arts University of Tokyo
action filter_type
action union
action find
entity University of Tokyo
relation country
action find
entity High School of Performing Arts
relation country
type designation for an administrative territorial entity
{'OR': [['University of Tokyo', 'country', {'concept': 'designation for an administrative territorial entity'}], ['High School of Performing Arts', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:University_of_Tokyo property:country ?h } UNION { resource:High_School_of_Performing_Arts property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q30
SYSTEM
Japan, United States of America
Q17 Q30
OR((Q7842,P17,c(Q15617994)), (Q5756639,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7842
relation P17
action find
entity Q5756639
relation P17
type Q15617994
[ANSWERS] are University of Tokyo or High School of Performing Arts a part of
{'OR': [['Q7842', 'P17', {'concept': 'Q15617994'}], ['Q5756639', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q7842 property:P17 ?h } UNION { resource:Q5756639 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
Japan United States of America
Japan and United States of America are University of Tokyo or High School of Performing Arts a part of
Japan United States of America
action filter_type
action union
action find
entity University of Tokyo
relation country
action find
entity High School of Performing Arts
relation country
type designation for an administrative territorial entity
{'OR': [['University of Tokyo', 'country', {'concept': 'designation for an administrative territorial entity'}], ['High School of Performing Arts', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:University_of_Tokyo property:country ?h } UNION { resource:High_School_of_Performing_Arts property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q17 Q30
P530
Q15617994
USER
Which administrative territories have diplomatic relations with Japan and United States of America ?
(c(Q15617994),P530,Q17) (c(Q15617994),P530,Q30)
action union
action filter_type
action find_reverse
entity Q30
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q17
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q17'] [{'concept': 'Q15617994'}, 'P530', 'Q30']
SELECT DISTINCT ?f WHERE { ?f property:P530 ?c . VALUES ( ?c ) { ( resource:Q30 ) ( resource:Q17 ) } }
Japan United States of America
action union
action filter_type
action find_reverse
entity United States of America
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Japan'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'United States of America']
SELECT DISTINCT ?f WHERE { ?f property:diplomatic_relation ?c . VALUES ( ?c ) { ( resource:United_States_of_America ) ( resource:Japan ) } }
[]
designation for an administrative territorial entity
Q38 Q38 Q155
SYSTEM
Brazil for 3rd, Italy for 1st, 2nd
Q884 Q711 Q230 Q227 Q30 Q142 Q159 Q155 Q38 Q801 Q858 Q222 Q796 Q889 Q884 Q948 Q347 Q1011 Q230 Q212 Q414 Q403 Q37 Q252 Q902 Q142 Q148 Q159 Q155 Q953 Q668 Q929 Q184 Q38 Q17 Q805 Q801 Q858
(c(Q15617994),P530,Q17) (c(Q15617994),P530,Q30)
action union
action filter_type
action find_reverse
entity Q30
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q17
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', 'Q17'] [{'concept': 'Q15617994'}, 'P530', 'Q30']
SELECT DISTINCT ?f WHERE { ?f property:P530 ?c . VALUES ( ?c ) { ( resource:Q30 ) ( resource:Q17 ) } }
South Korea Mongolia Georgia Azerbaijan United States of America France Russia Brazil Italy Israel Syria Albania Iraq Afghanistan South Korea Tunisia Liechtenstein Cape Verde Georgia Ukraine Argentina Serbia Lithuania Indonesia Bangladesh France People's Republic of China Russia Brazil Zambia India Central African Republic Belarus Italy Japan Yemen Israel Syria
Italy, Italy and Brazil have diplomatic relations with Japan and United States of America
Italy Italy Brazil
action union
action filter_type
action find_reverse
entity United States of America
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Japan'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'United States of America']
SELECT DISTINCT ?f WHERE { ?f property:diplomatic_relation ?c . VALUES ( ?c ) { ( resource:United_States_of_America ) ( resource:Japan ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11388678
P19
Q56061
USER
Where was Noboru Kojima born ?
(Q11388678,P19,c(Q56061))
action filter_type
action find
entity Q11388678
relation P19
type Q56061
['Q11388678', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q11388678 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Noboru Kojima
action filter_type
action find
entity Noboru Kojima
relation place of birth
type administrative territorial entity
['Noboru Kojima', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Noboru_Kojima property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
(Q11388678,P19,c(Q56061))
action filter_type
action find
entity Q11388678
relation P19
type Q56061
Noboru Kojima was born in [ANSWER]
['Q11388678', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q11388678 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Tokyo
Noboru Kojima was born in Tokyo
Tokyo
action filter_type
action find
entity Noboru Kojima
relation place of birth
type administrative territorial entity
['Noboru Kojima', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Noboru_Kojima property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q515 Q56061
USER
Which administrative territories have around 2 cities or administrative territories as their county seat ?
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
value 2
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?q rdf:type ?g } GROUP BY ?s } . FILTER ( ?z = 2 ) }
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
value 2
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?q rdf:type ?g } GROUP BY ?s } . FILTER ( ?z = 2 ) }
[]
designation for an administrative territorial entity city administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q805 Q155 Q1020 Q41 Q30 Q38 Q1033 Q199688 Q517333 Q924 Q17
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
value 2
[ANSWERS] have around 2 cities or administrative territories as their county seat
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?q rdf:type ?g } GROUP BY ?s } . FILTER ( ?z = 2 ) }
Yemen Brazil Malawi Greece United States of America Italy Nigeria Almohad Principality of Polotsk Tanzania Japan
Italy, Brazil and United States of America have around 2 cities or administrative territories as their county seat
Italy Brazil United States of America
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
value 2
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?q rdf:type ?g } GROUP BY ?s } . FILTER ( ?z = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17 Q664
P530
Q15617994
USER
How many administrative territories have ambassadorial relations with Japan and New Zealand ?
(c(Q15617994),P530,Q17) (c(Q15617994),P530,Q664)
action count
action intersection
action filter_type
action find_reverse
entity Q17
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q664
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q17'] [{'concept': 'Q15617994'}, 'P530', 'Q664']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:P530 resource:Q17 . ?b rdf:type ontology:Q15617994 . ?b property:P530 resource:Q664 . ?b rdf:type ontology:Q15617994 }
Japan New Zealand
action count
action intersection
action filter_type
action find_reverse
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity New Zealand
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Japan'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'New Zealand']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:diplomatic_relation resource:Japan . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation resource:New_Zealand . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
2
Q38 Q230
(c(Q15617994),P530,Q17) (c(Q15617994),P530,Q664)
action count
action intersection
action filter_type
action find_reverse
entity Q17
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q664
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q17'] [{'concept': 'Q15617994'}, 'P530', 'Q664']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:P530 resource:Q17 . ?b rdf:type ontology:Q15617994 . ?b property:P530 resource:Q664 . ?b rdf:type ontology:Q15617994 }
Italy Georgia
2
action count
action intersection
action filter_type
action find_reverse
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity New Zealand
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Japan'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'New Zealand']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:diplomatic_relation resource:Japan . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation resource:New_Zealand . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]