Simple Question (Direct)
Simple Question
Q11553245
P734
Q82799
USER
Who is associated with Kōji Sawada ?
(Q11553245,P734,c(Q82799))
action filter_type
action find
entity Q11553245
relation P734
type Q82799
['Q11553245', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q11553245 property:P734 ?m . ?m rdf:type ontology:Q82799 }
Kōji Sawada
action filter_type
action find
entity Kōji Sawada
relation family name
type name
['Kōji Sawada', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Kōji_Sawada property:family_name ?m . ?m rdf:type ontology:name }
[]
name
Q21493821
SYSTEM
Sawada
Q21493821
(Q11553245,P734,c(Q82799))
action filter_type
action find
entity Q11553245
relation P734
type Q82799
[ANSWER] is associated with Kōji [ANSWER]
['Q11553245', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q11553245 property:P734 ?m . ?m rdf:type ontology:Q82799 }
Sawada
Sawada is associated with Kōji Sawada
Sawada
action filter_type
action find
entity Kōji Sawada
relation family name
type name
['Kōji Sawada', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Kōji_Sawada property:family_name ?m . ?m rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11553245
P19
Q515
USER
Which city was that person born at ?
(Q21493821,P19,c(Q515))
action filter_type
action find
entity Q11553245
relation P19
type Q515
['Q21493821', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { resource:Q11553245 property:P19 ?e . ?e rdf:type ontology:Q515 }
Kōji Sawada
action filter_type
action find
entity Kōji Sawada
relation place of birth
type city
['Sawada', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { resource:Kōji_Sawada property:place_of_birth ?e . ?e rdf:type ontology:city }
[]
city
Q329797
SYSTEM
Iwakuni
Q329797
(Q21493821,P19,c(Q515))
action filter_type
action find
entity Q11553245
relation P19
type Q515
That person was born in [ANSWER]
['Q21493821', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { resource:Q11553245 property:P19 ?e . ?e rdf:type ontology:Q515 }
Iwakuni
That person was born in Iwakuni
Iwakuni
action filter_type
action find
entity Kōji Sawada
relation place of birth
type city
['Sawada', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { resource:Kōji_Sawada property:place_of_birth ?e . ?e rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q151885 Q853614 Q82799
USER
Which names are parts of min number of concepts and identifiers ?
(c(Q82799),P361,c(Q151885)|c(Q853614))
action argmin
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q853614
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q853614'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?z ) { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?q ) WHERE { VALUES ( ?o ) { ( ontology:Q151885 ) ( ontology:Q853614 ) } . ?m rdf:type ?o } GROUP BY ?n } } . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?d ) WHERE { { ?i rdf:type ontology:Q82799 . ?v rdf:type ontology:Q151885 . ?i property:P361 ?v } UNION { ?i property:P361 ?v . ?i rdf:type ontology:Q82799 . ?v rdf:type ontology:Q853614 } } GROUP BY ?i } . FILTER ( ?d = ?z ) }
action argmin
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type identifier
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'identifier'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?z ) { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?q ) WHERE { VALUES ( ?o ) { ( ontology:concept ) ( ontology:identifier ) } . ?m rdf:type ?o } GROUP BY ?n } } . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?d ) WHERE { { ?i rdf:type ontology:name . ?v rdf:type ontology:concept . ?i property:part_of ?v } UNION { ?i property:part_of ?v . ?i rdf:type ontology:name . ?v rdf:type ontology:identifier } } GROUP BY ?i } . FILTER ( ?d = ?z ) }
[]
concept identifier name
Q27352651 Q27350540 Q1915243
SYSTEM
Seon, Sang, McKeown
Q2168099 Q5791319 Q11283653 Q26156283 Q7071783 Q15629245 Q235598 Q16882305 Q1240901 Q24251030 Q1093580 Q742083 Q10145967 Q252216 Q272914 Q2553935 Q18645909 Q15238609 Q25695405 Q24091156 Q20875974 Q3281200 Q26266311 Q10587130 Q15926381 Q19687637 Q21470412 Q21534988 Q21405537 Q26266310 Q12624980 Q2876425 Q5 Q631147 Q27651154 Q26736681 Q27352651 Q15788891 Q4400681 Q12600404 Q21484879 Q24090418 Q382004 Q12601635 Q5461714 Q27350540 Q1399288 Q2491016 Q1557998 Q19831835 Q27450724 Q15711050 Q26736416 Q26736415 Q26741038 Q1915243 Q263542 Q21484914 Q4835658 Q20064977 Q21538548 Q5034376 Q26741034 Q861966
(c(Q82799),P361,c(Q151885)|c(Q853614))
action argmin
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q853614
[ANSWERS] are parts of min number of concepts and identifiers
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q853614'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?z ) { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?q ) WHERE { VALUES ( ?o ) { ( ontology:Q151885 ) ( ontology:Q853614 ) } . ?m rdf:type ?o } GROUP BY ?n } } . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?d ) WHERE { { ?i rdf:type ontology:Q82799 . ?v rdf:type ontology:Q151885 . ?i property:P361 ?v } UNION { ?i property:P361 ?v . ?i rdf:type ontology:Q82799 . ?v rdf:type ontology:Q853614 } } GROUP BY ?i } . FILTER ( ?d = ?z ) }
human Rotavirusses Tajinaste Czech family name Whittingstall O'Donovan family lizard Piso Rostopchin praenomen Barnaby Han surname Princes of Paliano Grand Master of the Teutonic Knights Árnadóttir Çubukçubaşı Wedekind Abe nomen Curtis Abe Ševela Tent caterpillar Trimnell Moa He Rahim Tyrell Yaşar Edward Ritchard Hyeon Aïssata human infraspecific name Gottlieb Veit Seon Blake Russian surname Sang Salman Hara Afa-Negus Seon Florida black bass Sang Fearnley orthographical variant Gyalwang Drukpa Qutb Freundel Lu Roveda Roveda Patti McKeown Griffith Clay BIFF Dong Biff Caomhánach Patti dung beetles
Seon, Sang and McKeown are parts of min number of concepts and identifiers
Seon Sang McKeown
action argmin
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type identifier
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'identifier'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?z ) { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?q ) WHERE { VALUES ( ?o ) { ( ontology:concept ) ( ontology:identifier ) } . ?m rdf:type ?o } GROUP BY ?n } } . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?d ) WHERE { { ?i rdf:type ontology:name . ?v rdf:type ontology:concept . ?i property:part_of ?v } UNION { ?i property:part_of ?v . ?i rdf:type ontology:name . ?v rdf:type ontology:identifier } } GROUP BY ?i } . FILTER ( ?d = ?z ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1915243
P112
Q502895
USER
Which person founded that name ?
(Q1915243,P112,c(Q502895))
action filter_type
action find
entity Q1915243
relation P112
type Q502895
['Q1915243', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q1915243 property:P112 ?h . ?h rdf:type ontology:Q502895 }
McKeown
action filter_type
action find
entity McKeown
relation founder
type common name
['McKeown', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:McKeown property:founder ?h . ?h rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1915243
SYSTEM
Did you mean McKeown ?
Q27352651 Q27350540 Q1915243
(Q27352651,P112,c(Q502895)) (Q27350540,P112,c(Q502895)) (Q1915243,P112,c(Q502895))
[ANSWER]
['Q27352651', 'P112', {'concept': 'Q502895'}] ['Q27350540', 'P112', {'concept': 'Q502895'}] ['Q1915243', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q1915243 property:P112 ?h . ?h rdf:type ontology:Q502895 }
Seon Sang McKeown
Did you mean McKeown ?
McKeown
['Seon', 'founder', {'concept': 'common name'}] ['Sang', 'founder', {'concept': 'common name'}] ['McKeown', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:McKeown property:founder ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1915243,P112,c(Q502895))
['Q1915243', 'P112', {'concept': 'Q502895'}]
['McKeown', 'founder', {'concept': 'common name'}]
[]
Q6224243
SYSTEM
John Byset
Q6224243
(Q1915243,P112,c(Q502895))
action filter_type
action find
entity Q1915243
relation P112
type Q502895
[ANSWER] founded that name
['Q1915243', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q1915243 property:P112 ?h . ?h rdf:type ontology:Q502895 }
John Byset
John Byset founded that name
John Byset
action filter_type
action find
entity McKeown
relation founder
type common name
['McKeown', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:McKeown property:founder ?h . ?h rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q21847115
P725
Q502895 Q95074
USER
How many fictional characters did less number of people dub for than Fumihiro ?
(c(Q95074),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q21847115
relation P725
type Q502895
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?j ) WHERE { ?q property:P725 ?w . ?q rdf:type ontology:Q95074 . ?w rdf:type ontology:Q502895 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Q21847115 property:P725 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?j < ?z ) }
Fumihiro
action count
action less
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Fumihiro
relation voice actor
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?j ) WHERE { ?q property:voice_actor ?w . ?q rdf:type ontology:fictional_character . ?w rdf:type ontology:common_name } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Fumihiro property:voice_actor ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?j < ?z ) }
[]
common name fictional character
SYSTEM
16
Q21847055 Q3498590 Q308950 Q28465 Q551327 Q2442950 Q7828 Q3838346 Q8139731 Q247120 Q1529229 Q27493503 Q605125 Q5846 Q7810 Q2725247
(c(Q95074),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q21847115
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?j ) WHERE { ?q property:P725 ?w . ?q rdf:type ontology:Q95074 . ?w rdf:type ontology:Q502895 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Q21847115 property:P725 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?j < ?z ) }
Itsuki Tachibana Chester Cheetah Ash Ketchum Peter Griffin terminator Max Rockatansky Marge Simpson Lucas G-Man Neo Darkwing Duck Desoto GLaDOS Lisa Simpson Homer Simpson Ness
16
action count
action less
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Fumihiro
relation voice actor
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?j ) WHERE { ?q property:voice_actor ?w . ?q rdf:type ontology:fictional_character . ?w rdf:type ontology:common_name } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Fumihiro property:voice_actor ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?j < ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q21847103
P725
Q502895 Q95074
USER
And also tell me about Shingo Shōji?
(c(Q95074),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q21847103
relation P725
type Q502895
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { ?k property:P725 ?e . ?k rdf:type ontology:Q95074 . ?e rdf:type ontology:Q502895 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { resource:Q21847103 property:P725 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?r < ?v ) }
Shingo Shōji
action count
action less
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Shingo Shōji
relation voice actor
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { ?k property:voice_actor ?e . ?k rdf:type ontology:fictional_character . ?e rdf:type ontology:common_name } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { resource:Shingo_Shōji property:voice_actor ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?r < ?v ) }
[]
common name fictional character
SYSTEM
16
Q21847055 Q3498590 Q308950 Q28465 Q551327 Q2442950 Q7828 Q3838346 Q8139731 Q247120 Q1529229 Q27493503 Q605125 Q5846 Q7810 Q2725247
(c(Q95074),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q21847103
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { ?k property:P725 ?e . ?k rdf:type ontology:Q95074 . ?e rdf:type ontology:Q502895 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { resource:Q21847103 property:P725 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?r < ?v ) }
Itsuki Tachibana Chester Cheetah Ash Ketchum Peter Griffin terminator Max Rockatansky Marge Simpson Lucas G-Man Neo Darkwing Duck Desoto GLaDOS Lisa Simpson Homer Simpson Ness
16
action count
action less
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Shingo Shōji
relation voice actor
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { ?k property:voice_actor ?e . ?k rdf:type ontology:fictional_character . ?e rdf:type ontology:common_name } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { resource:Shingo_Shōji property:voice_actor ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?r < ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q27352651
P1533
Q82799
USER
How many names are same as Seon ?
(Q27352651,P1533,c(Q82799))
action count
action filter_type
action find
entity Q27352651
relation P1533
type Q82799
['Q27352651', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Q27352651 property:P1533 ?t . ?t rdf:type ontology:Q82799 }
Seon
action count
action filter_type
action find
entity Seon
relation family name identical to this first name
type name
['Seon', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Seon property:family_name_identical_to_this_first_name ?t . ?t rdf:type ontology:name }
[]
name
SYSTEM
1
Q12601635
(Q27352651,P1533,c(Q82799))
action count
action filter_type
action find
entity Q27352651
relation P1533
type Q82799
[ANSWER]
['Q27352651', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Q27352651 property:P1533 ?t . ?t rdf:type ontology:Q82799 }
Seon
1
action count
action filter_type
action find
entity Seon
relation family name identical to this first name
type name
['Seon', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Seon property:family_name_identical_to_this_first_name ?t . ?t rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q21286082
Q82799
USER
And what about Jones?
(Q21286082,P1533,c(Q82799))
action count
action filter_type
action find
entity Q21286082
relation P1533
type Q82799
['Q21286082', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Q21286082 property:P1533 ?r . ?r rdf:type ontology:Q82799 }
Jones
action count
action filter_type
action find
entity Jones
relation family name identical to this first name
type name
['Jones', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Jones property:family_name_identical_to_this_first_name ?r . ?r rdf:type ontology:name }
[]
name
SYSTEM
1
(Q21286082,P1533,c(Q82799))
action count
action filter_type
action find
entity Q21286082
relation P1533
type Q82799
[ANSWER]
['Q21286082', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Q21286082 property:P1533 ?r . ?r rdf:type ontology:Q82799 }
1
action count
action filter_type
action find
entity Jones
relation family name identical to this first name
type name
['Jones', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Jones property:family_name_identical_to_this_first_name ?r . ?r rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q329797
P17
Q15617994
USER
How many administrative territories are Iwakuni situated in ?
(Q329797,P17,c(Q15617994))
action count
action filter_type
action find
entity Q329797
relation P17
type Q15617994
['Q329797', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Q329797 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
Iwakuni
action count
action filter_type
action find
entity Iwakuni
relation country
type designation for an administrative territorial entity
['Iwakuni', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Iwakuni property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q17
(Q329797,P17,c(Q15617994))
action count
action filter_type
action find
entity Q329797
relation P17
type Q15617994
[ANSWER]
['Q329797', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Q329797 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
Japan
1
action count
action filter_type
action find
entity Iwakuni
relation country
type designation for an administrative territorial entity
['Iwakuni', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Iwakuni property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q329797
P17
Q15617994
USER
Which administrative territory is that city situated in ?
action filter_type
action find
entity Q329797
relation P17
type Q15617994
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q329797 property:P17 ?b }
Iwakuni
action filter_type
action find
entity Iwakuni
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Iwakuni property:country ?b }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
action filter_type
action find
entity Q329797
relation P17
type Q15617994
That city is situated in [ANSWER]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q329797 property:P17 ?b }
Japan
That city is situated in Japan
Japan
action filter_type
action find
entity Iwakuni
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Iwakuni property:country ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q17
P137
Q2424752 Q2235308
USER
How many products or ship types can be described as facility operator of Japan ?
(c(Q2424752),P137,Q17) (c(Q2235308),P137,Q17)
action count
action union
action filter_type
action find_reverse
entity Q17
relation P137
type Q2424752
action filter_type
action find_reverse
entity Q17
relation P137
type Q2235308
[{'concept': 'Q2424752'}, 'P137', 'Q17'] [{'concept': 'Q2235308'}, 'P137', 'Q17']
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ?w . VALUES ( ?w ) { ( ontology:Q2235308 ) ( ontology:Q2424752 ) } }
Japan
action count
action union
action filter_type
action find_reverse
entity Japan
relation operator
type product
action filter_type
action find_reverse
entity Japan
relation operator
type ship type
[{'concept': 'product'}, 'operator', 'Japan'] [{'concept': 'ship type'}, 'operator', 'Japan']
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ?w . VALUES ( ?w ) { ( ontology:ship_type ) ( ontology:product ) } }
[]
product ship type
SYSTEM
2
Q18520652 Q1785303
(c(Q2424752),P137,Q17) (c(Q2235308),P137,Q17)
action count
action union
action filter_type
action find_reverse
entity Q17
relation P137
type Q2424752
action filter_type
action find_reverse
entity Q17
relation P137
type Q2235308
[ANSWER]
[{'concept': 'Q2424752'}, 'P137', 'Q17'] [{'concept': 'Q2235308'}, 'P137', 'Q17']
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ?w . VALUES ( ?w ) { ( ontology:Q2235308 ) ( ontology:Q2424752 ) } }
Boeing 69B Takao class cruiser
2
action count
action union
action filter_type
action find_reverse
entity Japan
relation operator
type product
action filter_type
action find_reverse
entity Japan
relation operator
type ship type
[{'concept': 'product'}, 'operator', 'Japan'] [{'concept': 'ship type'}, 'operator', 'Japan']
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ?w . VALUES ( ?w ) { ( ontology:ship_type ) ( ontology:product ) } }
[]