Simple Question (Direct)
Simple Question
Q303553
P734
Q82799
USER
Who has the surname Alphaeus Philemon Cole ?
(Q303553,P734,c(Q82799))
action filter_type
action find
entity Q303553
relation P734
type Q82799
['Q303553', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q303553 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Alphaeus Philemon Cole
action filter_type
action find
entity Alphaeus Philemon Cole
relation family name
type name
['Alphaeus Philemon Cole', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Alphaeus_Philemon_Cole property:family_name ?g . ?g rdf:type ontology:name }
[]
name
Q1128028
SYSTEM
Cole
Q1128028
(Q303553,P734,c(Q82799))
action filter_type
action find
entity Q303553
relation P734
type Q82799
[ANSWER] has the surname Alphaeus Philemon [ANSWER]
['Q303553', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q303553 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Cole
Cole has the surname Alphaeus Philemon Cole
Cole
action filter_type
action find
entity Alphaeus Philemon Cole
relation family name
type name
['Alphaeus Philemon Cole', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Alphaeus_Philemon_Cole property:family_name ?g . ?g rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1128028
P407
Q34770
USER
Which language is that name composed in ?
(Q1128028,P407,c(Q34770))
action filter_type
action find
entity Q1128028
relation P407
type Q34770
['Q1128028', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q1128028 property:P407 ?w . ?w rdf:type ontology:Q34770 }
Cole
action filter_type
action find
entity Cole
relation language of work or name
type language
['Cole', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Cole property:language_of_work_or_name ?w . ?w rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q1128028,P407,c(Q34770))
action filter_type
action find
entity Q1128028
relation P407
type Q34770
That name is composed of [ANSWER]
['Q1128028', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q1128028 property:P407 ?w . ?w rdf:type ontology:Q34770 }
English
That name is composed of English
English
action filter_type
action find
entity Cole
relation language of work or name
type language
['Cole', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Cole property:language_of_work_or_name ?w . ?w rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1860 Q1194834
P361
Q5962346
USER
Is that language a portion of Rubis-class submarine ?
(Q1860,P361,Q1194834)
action is_in
entity Q1194834
action find
entity Q1860
relation P361
['Q1860', 'P361', 'Q1194834']
ASK WHERE { resource:Q1860 property:P361 resource:Q1194834 }
English Rubis-class submarine
action is_in
entity Rubis-class submarine
action find
entity English
relation part of
['English', 'part of', 'Rubis-class submarine']
ASK WHERE { resource:English property:part_of resource:Rubis-class_submarine }
[]
classification scheme
SYSTEM
NO
(Q1860,P361,Q1194834)
action is_in
entity Q1194834
action find
entity Q1860
relation P361
[ANSWER]
['Q1860', 'P361', 'Q1194834']
ASK WHERE { resource:Q1860 property:P361 resource:Q1194834 }
No
action is_in
entity Rubis-class submarine
action find
entity English
relation part of
['English', 'part of', 'Rubis-class submarine']
ASK WHERE { resource:English property:part_of resource:Rubis-class_submarine }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q12737077 Q2472587 Q82799
USER
Which names come from min number of occupations or peoples ?
(c(Q82799),P138,c(Q12737077)|c(Q2472587))
action argmin
action union
action find_tuple_counts
relation P138
type Q82799
type Q12737077
action find_tuple_counts
relation P138
type Q82799
type Q2472587
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q12737077'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?v ) { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?e ) WHERE { VALUES ( ?n ) { ( ontology:Q12737077 ) ( ontology:Q2472587 ) } . ?w rdf:type ?n } GROUP BY ?s } } . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?o ) WHERE { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:Q12737077 ) ( ontology:Q2472587 ) } } GROUP BY ?l } . FILTER ( ?o = ?v ) }
action argmin
action union
action find_tuple_counts
relation named after
type name
type occupation
action find_tuple_counts
relation named after
type name
type people
[{'concept': 'name'}, 'named after', [{'concept': 'occupation'}, {'concept': 'people'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?v ) { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?e ) WHERE { VALUES ( ?n ) { ( ontology:occupation ) ( ontology:people ) } . ?w rdf:type ?n } GROUP BY ?s } } . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?o ) WHERE { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:occupation ) ( ontology:people ) } } GROUP BY ?l } . FILTER ( ?o = ?v ) }
[]
occupation people name
Q318363 Q1069827 Q1746111
SYSTEM
Abel, Rosario, Michael Gregorio
Q18335877 Q25212228 Q6501864 Q27022433 Q18198499 Q16281329 Q25368020 Q23727105 Q18043344 Q16428618 Q1069827 Q46767 Q1061262 Q19558843 Q25115046 Q16871796 Q23688105 Q1158323 Q1370531 Q8046631 Q13099004 Q17747435 Q21508058 Q16869754 Q20747163 Q17847495 Q15629400 Q1746111 Q23885849 Q1812295 Q25343999 Q21161805 Q21449089 Q1643088 Q21507928 Q2909103 Q24529820 Q807882 Q21448754 Q25058808 Q18198433 Q13553585 Q24805372 Q21491852 Q19847573 Q568872 Q25303577 Q714189 Q18309769 Q17643158 Q21506697 Q2160221 Q16865178 Q26985935 Q179234 Q21517798 Q18198435 Q688520 Q928249 Q318363 Q24566045 Q1724227 Q26262632 Q23773623 Q18578754 Q25201582 Q24035235 Q22738156 Q13626156 Q19831835 Q16965278 Q20818054 Q16883336 Q25326750 Q20963077 Q612479 Q17625919 Q26247962 Q22922124 Q16877784 Q23301520 Q16865123 Q20727079 Q16881199 Q21491815 Q24229341
(c(Q82799),P138,c(Q12737077)|c(Q2472587))
action argmin
action union
action find_tuple_counts
relation P138
type Q82799
type Q12737077
action find_tuple_counts
relation P138
type Q82799
type Q2472587
[ANSWERS] come from min number of occupations or peoples
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q12737077'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?v ) { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?e ) WHERE { VALUES ( ?n ) { ( ontology:Q12737077 ) ( ontology:Q2472587 ) } . ?w rdf:type ?n } GROUP BY ?s } } . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?o ) WHERE { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:Q12737077 ) ( ontology:Q2472587 ) } } GROUP BY ?l } . FILTER ( ?o = ?v ) }
Prévot Émile-Louis Kaplan Danziger Elizur Sha'aban Racine Poisson Renard Súla Rosario Meyer Ruby Pseudo-Lucian Louarn Lancaster de Bragança Albrecht Meister (surname) Yael Larsen Ruzena Delaroche Eastman Saccharomyces carlsbergensis Rózsa Dimorphotheca ecklonis Michael Gregorio Achaz Van Leemput Grenier Cain Lebreton Ramos Mouton Boissel Rameau Barbus Müller Ahrens Dumoulin Peleg Gold Bigot Poulain Laserbeak Palmer Vallon Duce Macdara If-Jesus-Christ-Had-Not-Died-For-Thee-Thou-Hadst-Been-Damned Lenormand Roche Bureau Froment Cro-Magnon Appenzeller Phanuel Arminia Kelly Abel Pignon Rose Ofer Lamour Voisin Roux Kleineidam Zijlstra Ackermann Qutb Wald Giolla Íosa Silver Février Aryaman Koehler Du Moulin Master of The Hours of Henri II von Mecklenburg-Schwerin Napoli Aonchotheca moraveci Buffet Schultheiss Picard Le Guen Toscano
Abel, Rosario and Michael Gregorio come from min number of occupations or peoples
Abel Rosario Michael Gregorio
action argmin
action union
action find_tuple_counts
relation named after
type name
type occupation
action find_tuple_counts
relation named after
type name
type people
[{'concept': 'name'}, 'named after', [{'concept': 'occupation'}, {'concept': 'people'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?v ) { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?e ) WHERE { VALUES ( ?n ) { ( ontology:occupation ) ( ontology:people ) } . ?w rdf:type ?n } GROUP BY ?s } } . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?o ) WHERE { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:occupation ) ( ontology:people ) } } GROUP BY ?l } . FILTER ( ?o = ?v ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2614648 Q1194834
P289
Q2235308
USER
Which ship types have a vessel class called Rubis-class submarine or Truxtun-class destroyer ?
OR((c(Q2235308),P289,Q1194834), (c(Q2235308),P289,Q2614648))
action filter_type
action union
action find_reverse
entity Q1194834
relation P289
action find_reverse
entity Q2614648
relation P289
type Q2235308
{'OR': [[{'concept': 'Q2235308'}, 'P289', 'Q1194834'], [{'concept': 'Q2235308'}, 'P289', 'Q2614648']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q2235308 . { VALUES ( ?d ) { ( resource:Q1194834 ) ( resource:Q2614648 ) } . ?v property:P289 ?d } }
Truxtun-class destroyer Rubis-class submarine
action filter_type
action union
action find_reverse
entity Rubis-class submarine
relation vessel class
action find_reverse
entity Truxtun-class destroyer
relation vessel class
type ship type
{'OR': [[{'concept': 'ship type'}, 'vessel class', 'Rubis-class submarine'], [{'concept': 'ship type'}, 'vessel class', 'Truxtun-class destroyer']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:ship_type . { VALUES ( ?d ) { ( resource:Rubis-class_submarine ) ( resource:Truxtun-class_destroyer ) } . ?v property:vessel_class ?d } }
[]
ship type
Q3544582 Q3544370 Q1474726 Q3544577
SYSTEM
USS Whipple, USS Worden, French submarine Saphir, USS Truxtun
Q3544582 Q3544370 Q1474726 Q3544577
OR((c(Q2235308),P289,Q1194834), (c(Q2235308),P289,Q2614648))
action filter_type
action union
action find_reverse
entity Q1194834
relation P289
action find_reverse
entity Q2614648
relation P289
type Q2235308
[ANSWERS] have a vessel class called Rubis-class submarine or Truxtun-class destroyer
{'OR': [[{'concept': 'Q2235308'}, 'P289', 'Q1194834'], [{'concept': 'Q2235308'}, 'P289', 'Q2614648']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q2235308 . { VALUES ( ?d ) { ( resource:Q1194834 ) ( resource:Q2614648 ) } . ?v property:P289 ?d } }
USS Whipple USS Worden French submarine Saphir USS Truxtun
USS Whipple, USS Worden, French submarine Saphir and USS Truxtun have a vessel class called Rubis-class submarine or Truxtun-class destroyer
USS Whipple USS Worden French submarine Saphir USS Truxtun
action filter_type
action union
action find_reverse
entity Rubis-class submarine
relation vessel class
action find_reverse
entity Truxtun-class destroyer
relation vessel class
type ship type
{'OR': [[{'concept': 'ship type'}, 'vessel class', 'Rubis-class submarine'], [{'concept': 'ship type'}, 'vessel class', 'Truxtun-class destroyer']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:ship_type . { VALUES ( ?d ) { ( resource:Rubis-class_submarine ) ( resource:Truxtun-class_destroyer ) } . ?v property:vessel_class ?d } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q1128028
P27 P734
Q502895
USER
Which people have Cole as last name and are a native of United States of America ?
AND((c(Q502895),P734,Q1128028), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q1128028
relation P734
action find_reverse
entity Q30
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q1128028'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?t WHERE { ?t property:P27 resource:Q30 . ?t property:P734 resource:Q1128028 . ?t rdf:type ontology:Q502895 }
United States of America Cole
action filter_type
action intersection
action find_reverse
entity Cole
relation family name
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Cole'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?t WHERE { ?t property:country_of_citizenship resource:United_States_of_America . ?t property:family_name resource:Cole . ?t rdf:type ontology:common_name }
[]
common name
Q16728135 Q14084334 Q3959690 Q1927177 Q288123 Q19839030 Q303553 Q14950899 Q3968219 Q1562857
SYSTEM
Some of them are David N. Cole, Constance Cole, Shonda Cole, Michael Cole, Taylor Cole, Ed Cole, Alphaeus Philemon Cole, Justin Cole, Stanley Cole, Michael Cole
Q204018 Q334001 Q14950899 Q173839 Q2401060 Q1562857 Q269462 Q3666655 Q231942 Q1927177 Q19839030 Q6772647 Q137042 Q18085759 Q14084334 Q456473 Q1316007 Q16728135 Q639311 Q3959690 Q180408 Q303553 Q1363803 Q704570 Q288123 Q315864 Q7838376 Q233229 Q3809158 Q1464625 Q1145424 Q969944 Q3968219
AND((c(Q502895),P734,Q1128028), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q1128028
relation P734
action find_reverse
entity Q30
relation P27
type Q502895
[ANSWERS] have Cole as last name and are a native of United States of America
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q1128028'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?t WHERE { ?t property:P27 resource:Q30 . ?t property:P734 resource:Q1128028 . ?t rdf:type ontology:Q502895 }
J. Cole Thomas Cole Justin Cole Tom Cole Teju Cole Michael Cole Paula Cole Charlie Cole Natalie Cole Michael Cole Ed Cole Marquice Cole Nat King Cole John Cole Constance Cole Kresley Cole Theodore Cole David N. Cole Audie Cole Shonda Cole Freddy Cole Alphaeus Philemon Cole Juan Cole Chris Cole Taylor Cole Gary Cole Trent Cole Keyshia Cole John Cole Bradley Cole Jayden Cole Robert G. Cole Stanley Cole
David N. Cole, Constance Cole, Shonda Cole, Michael Cole, Taylor Cole, Ed Cole, Alphaeus Philemon Cole, Justin Cole, Stanley Cole and Michael Cole have Cole as last name and are a native of United States of America
David N. Cole Constance Cole Shonda Cole Michael Cole Taylor Cole Ed Cole Alphaeus Philemon Cole Justin Cole Stanley Cole Michael Cole
action filter_type
action intersection
action find_reverse
entity Cole
relation family name
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Cole'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?t WHERE { ?t property:country_of_citizenship resource:United_States_of_America . ?t property:family_name resource:Cole . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do max number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?l } } . { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?b = ?s ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?l } } . { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?b = ?s ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people know how [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?l } } . { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?b = ?s ) }
piano
Max number of people know how piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?l } } . { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?b = ?s ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19839030
P551
Q56061
USER
Which administrative territory was Ed Cole a resident of ?
(Q19839030,P551,c(Q56061))
action filter_type
action find
entity Q19839030
relation P551
type Q56061
['Q19839030', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q19839030 property:P551 ?g . ?g rdf:type ontology:Q56061 }
Ed Cole
action filter_type
action find
entity Ed Cole
relation residence
type administrative territorial entity
['Ed Cole', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Ed_Cole property:residence ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q6106
SYSTEM
Portland
Q6106
(Q19839030,P551,c(Q56061))
action filter_type
action find
entity Q19839030
relation P551
type Q56061
The [ANSWER] was Ed Cole a resident of
['Q19839030', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q19839030 property:P551 ?g . ?g rdf:type ontology:Q56061 }
Portland
The Portland was Ed Cole a resident of
Portland
action filter_type
action find
entity Ed Cole
relation residence
type administrative territorial entity
['Ed Cole', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Ed_Cole property:residence ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]