Simple Question (Direct)
Simple Question
Q4808345
P21
Q290
USER
What is the sex of Assaf Amdursky ?
(Q4808345,P21,c(Q290))
action filter_type
action find
entity Q4808345
relation P21
type Q290
['Q4808345', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q4808345 property:P21 ?a . ?a rdf:type ontology:Q290 }
Assaf Amdursky
action filter_type
action find
entity Assaf Amdursky
relation gender
type sex
['Assaf Amdursky', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Assaf_Amdursky property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4808345,P21,c(Q290))
action filter_type
action find
entity Q4808345
relation P21
type Q290
The sex of Assaf Amdursky is the [ANSWER]
['Q4808345', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q4808345 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
The sex of Assaf Amdursky is the male
male
action filter_type
action find
entity Assaf Amdursky
relation gender
type sex
['Assaf Amdursky', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Assaf_Amdursky property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4808345
P1412
Q25295
USER
Which language family can that person understand ?
(Q6581097,P1412,c(Q25295))
action filter_type
action find
entity Q4808345
relation P1412
type Q25295
['Q6581097', 'P1412', {'concept': 'Q25295'}]
SELECT DISTINCT ?t WHERE { resource:Q4808345 property:P1412 ?t . ?t rdf:type ontology:Q25295 }
Assaf Amdursky
action filter_type
action find
entity Assaf Amdursky
relation languages spoken, written or signed
type language family
['male', 'languages spoken, written or signed', {'concept': 'language family'}]
SELECT DISTINCT ?t WHERE { resource:Assaf_Amdursky property:languages_spoken,_written_or_signed ?t . ?t rdf:type ontology:language_family }
[]
language family
Q9288
SYSTEM
Hebrew
Q9288
(Q6581097,P1412,c(Q25295))
action filter_type
action find
entity Q4808345
relation P1412
type Q25295
[ANSWER] can that person understand
['Q6581097', 'P1412', {'concept': 'Q25295'}]
SELECT DISTINCT ?t WHERE { resource:Q4808345 property:P1412 ?t . ?t rdf:type ontology:Q25295 }
Hebrew
Hebrew can that person understand
Hebrew
action filter_type
action find
entity Assaf Amdursky
relation languages spoken, written or signed
type language family
['male', 'languages spoken, written or signed', {'concept': 'language family'}]
SELECT DISTINCT ?t WHERE { resource:Assaf_Amdursky property:languages_spoken,_written_or_signed ?t . ?t rdf:type ontology:language_family }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P35
Q502895 Q15617994 Q35798
USER
Which people are the chiefs of state of exactly 23 administrative territories and executive branches ?
(c(Q15617994)|c(Q35798),P35,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
value 23
[[{'concept': 'Q15617994'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?u ) WHERE { ?i rdf:type ?d . VALUES ( ?d ) { ( ontology:Q15617994 ) ( ontology:Q35798 ) } } GROUP BY ?s } . FILTER ( ?u = 23 ) }
action equal
action union
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
value 23
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?u ) WHERE { ?i rdf:type ?d . VALUES ( ?d ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:executive_branch ) } } GROUP BY ?s } . FILTER ( ?u = 23 ) }
[]
common name designation for an administrative territorial entity executive branch
Q153688 Q9682
SYSTEM
Umberto I of Italy, Elizabeth II
Q153688 Q9682
(c(Q15617994)|c(Q35798),P35,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
value 23
[ANSWERS] are the chiefs of state of exactly 23 administrative territories and executive branches
[[{'concept': 'Q15617994'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?u ) WHERE { ?i rdf:type ?d . VALUES ( ?d ) { ( ontology:Q15617994 ) ( ontology:Q35798 ) } } GROUP BY ?s } . FILTER ( ?u = 23 ) }
Umberto I of Italy Elizabeth II
Umberto I of Italy and Elizabeth II are the chiefs of state of exactly 23 administrative territories and executive branches
Umberto I of Italy Elizabeth II
action equal
action union
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
value 23
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?u ) WHERE { ?i rdf:type ?d . VALUES ( ?d ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:executive_branch ) } } GROUP BY ?s } . FILTER ( ?u = 23 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P166
Q2003221 Q618779
USER
How many chivalric orders or awards were received by that person ?
(Q153688,P166,c(Q2003221)) (Q153688,P166,c(Q618779)) (Q153688,P166,c(Q2003221)) (Q153688,P166,c(Q618779)) (Q9682,P166,c(Q2003221)) (Q9682,P166,c(Q618779))
['Q153688', 'P166', {'concept': 'Q2003221'}] ['Q153688', 'P166', {'concept': 'Q618779'}] ['Q153688', 'P166', {'concept': 'Q2003221'}] ['Q153688', 'P166', {'concept': 'Q618779'}] ['Q9682', 'P166', {'concept': 'Q2003221'}] ['Q9682', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q153688 property:P166 ?z } UNION { resource:Q153688 property:P166 ?y } UNION { resource:Q153688 property:P166 ?z } UNION { resource:Q153688 property:P166 ?y } UNION { resource:Q402982 property:P166 ?z } UNION { resource:Q402982 property:P166 ?y } } . ?z rdf:type ontology:Q2003221 . ?y rdf:type ontology:Q618779 }
['Umberto I of Italy', 'award received', {'concept': 'chivalric order'}] ['Umberto I of Italy', 'award received', {'concept': 'award'}] ['Umberto I of Italy', 'award received', {'concept': 'chivalric order'}] ['Umberto I of Italy', 'award received', {'concept': 'award'}] ['Elizabeth II', 'award received', {'concept': 'chivalric order'}] ['Elizabeth II', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Umberto_I_of_Italy property:award_received ?z } UNION { resource:Umberto_I_of_Italy property:award_received ?y } UNION { resource:Umberto_I_of_Italy property:award_received ?z } UNION { resource:Umberto_I_of_Italy property:award_received ?y } UNION { resource:Elizabeth_II property:award_received ?z } UNION { resource:Elizabeth_II property:award_received ?y } } . ?z rdf:type ontology:chivalric_order . ?y rdf:type ontology:award }
[]
chivalric order award
Quantitative|Count|Mult. entity type|Clarification
Q153688
SYSTEM
Did you mean Umberto I of Italy ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q153688 property:P166 ?z } UNION { resource:Q153688 property:P166 ?y } UNION { resource:Q153688 property:P166 ?z } UNION { resource:Q153688 property:P166 ?y } UNION { resource:Q402982 property:P166 ?z } UNION { resource:Q402982 property:P166 ?y } } . ?z rdf:type ontology:Q2003221 . ?y rdf:type ontology:Q618779 }
Did you mean Umberto I of Italy ?
Umberto I of Italy
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Umberto_I_of_Italy property:award_received ?z } UNION { resource:Umberto_I_of_Italy property:award_received ?y } UNION { resource:Umberto_I_of_Italy property:award_received ?z } UNION { resource:Umberto_I_of_Italy property:award_received ?y } UNION { resource:Elizabeth_II property:award_received ?z } UNION { resource:Elizabeth_II property:award_received ?y } } . ?z rdf:type ontology:chivalric_order . ?y rdf:type ontology:award }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q153688,P166,c(Q2003221)) (Q153688,P166,c(Q618779)) (Q153688,P166,c(Q2003221)) (Q153688,P166,c(Q618779)) (Q9682,P166,c(Q2003221)) (Q9682,P166,c(Q618779))
['Q153688', 'P166', {'concept': 'Q2003221'}] ['Q153688', 'P166', {'concept': 'Q618779'}] ['Q153688', 'P166', {'concept': 'Q2003221'}] ['Q153688', 'P166', {'concept': 'Q618779'}] ['Q9682', 'P166', {'concept': 'Q2003221'}] ['Q9682', 'P166', {'concept': 'Q618779'}]
['Umberto I of Italy', 'award received', {'concept': 'chivalric order'}] ['Umberto I of Italy', 'award received', {'concept': 'award'}] ['Umberto I of Italy', 'award received', {'concept': 'chivalric order'}] ['Umberto I of Italy', 'award received', {'concept': 'award'}] ['Elizabeth II', 'award received', {'concept': 'chivalric order'}] ['Elizabeth II', 'award received', {'concept': 'award'}]
[]
SYSTEM
2
Q94145 Q15117228
(Q153688,P166,c(Q2003221)) (Q153688,P166,c(Q618779)) (Q153688,P166,c(Q2003221)) (Q153688,P166,c(Q618779)) (Q9682,P166,c(Q2003221)) (Q9682,P166,c(Q618779))
[ANSWER]
['Q153688', 'P166', {'concept': 'Q2003221'}] ['Q153688', 'P166', {'concept': 'Q618779'}] ['Q153688', 'P166', {'concept': 'Q2003221'}] ['Q153688', 'P166', {'concept': 'Q618779'}] ['Q9682', 'P166', {'concept': 'Q2003221'}] ['Q9682', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q153688 property:P166 ?z } UNION { resource:Q153688 property:P166 ?y } UNION { resource:Q153688 property:P166 ?z } UNION { resource:Q153688 property:P166 ?y } UNION { resource:Q402982 property:P166 ?z } UNION { resource:Q402982 property:P166 ?y } } . ?z rdf:type ontology:Q2003221 . ?y rdf:type ontology:Q618779 }
Order of the Black Eagle Knight of the Order of the Golden Fleece
2
['Umberto I of Italy', 'award received', {'concept': 'chivalric order'}] ['Umberto I of Italy', 'award received', {'concept': 'award'}] ['Umberto I of Italy', 'award received', {'concept': 'chivalric order'}] ['Umberto I of Italy', 'award received', {'concept': 'award'}] ['Elizabeth II', 'award received', {'concept': 'chivalric order'}] ['Elizabeth II', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Umberto_I_of_Italy property:award_received ?z } UNION { resource:Umberto_I_of_Italy property:award_received ?y } UNION { resource:Umberto_I_of_Italy property:award_received ?z } UNION { resource:Umberto_I_of_Italy property:award_received ?y } UNION { resource:Elizabeth_II property:award_received ?z } UNION { resource:Elizabeth_II property:award_received ?y } } . ?z rdf:type ontology:chivalric_order . ?y rdf:type ontology:award }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P110
Q502895 Q234460 Q2342494
USER
Which people had done the illustration of min number of texts or collectables ?
(c(Q234460)|c(Q2342494),P110,c(Q502895))
action argmin
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P110
type Q502895
type Q2342494
[[{'concept': 'Q234460'}, {'concept': 'Q2342494'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?v WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:Q234460 ) ( ontology:Q2342494 ) } } GROUP BY ?v } } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?j WHERE { { ?z rdf:type ontology:Q2342494 . ?j rdf:type ontology:Q502895 . ?z property:P110 ?j } UNION { ?j rdf:type ontology:Q502895 . ?z rdf:type ontology:Q234460 . ?z property:P110 ?j } } GROUP BY ?j } }
action argmin
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type text
action find_reverse_tuple_counts
relation illustrator
type common name
type collectable
[[{'concept': 'text'}, {'concept': 'collectable'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?v WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:text ) ( ontology:collectable ) } } GROUP BY ?v } } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?j WHERE { { ?z rdf:type ontology:collectable . ?j rdf:type ontology:common_name . ?z property:illustrator ?j } UNION { ?j rdf:type ontology:common_name . ?z rdf:type ontology:text . ?z property:illustrator ?j } } GROUP BY ?j } }
[]
common name text collectable
Q102139 Q5593 Q17114155
SYSTEM
Margrethe II of Denmark, Pablo Picasso, Aliy Zirkle
Q11535004 Q19677001 Q22292226 Q3480805 Q1654509 Q285282 Q1684981 Q463346 Q675791 Q24259036 Q24259034 Q1266750 Q3476767 Q353277 Q1191638 Q11264875 Q34743 Q6682 Q10854926 Q5488651 Q465460 Q2846567 Q3476776 Q24259199 Q8318812 Q11583599 Q5593 Q22322914 Q5082131 Q7026779 Q2182384 Q27042725 Q3280981 Q27003356 Q1074276 Q7279220 Q27043229 Q361970 Q7340147 Q772558 Q941468 Q11544351 Q9201330 Q378710 Q17114155 Q27056252 Q16737250 Q2220411 Q6137934 Q16263698 Q27048344 Q8874782 Q5228678 Q599530 Q3565597 Q12026771 Q7819621 Q1653798 Q128027 Q282121 Q1444152 Q1591928 Q1132235 Q27624911 Q374823 Q4674564 Q4506136 Q11667616 Q1738276 Q27037931 Q313945 Q11428452 Q838142 Q1387300 Q3608043 Q7678636 Q27055441 Q7182001 Q27037932 Q3519209 Q309945 Q650946 Q5721334 Q11898377 Q27042606 Q295073 Q3337062 Q2558737 Q16218861 Q16213683 Q858144 Q16065421 Q15987640 Q3272581 Q3260577 Q8003099 Q1866386 Q11482611 Q2857246 Q2957653 Q18534452 Q301112 Q11451126 Q27267646 Q19364029 Q27493479 Q27055483 Q388589 Q744325 Q272324 Q384225 Q2932464 Q2107880 Q13769198 Q102139 Q16683333 Q729902 Q742959 Q11599255 Q15987638 Q943783 Q8085517 Q24259053 Q531358 Q15912340 Q164279 Q22138337 Q17284472 Q15725991 Q7803591 Q660225 Q1439484 Q27042763 Q87115 Q6810831 Q11540237 Q4951135 Q27055506 Q4701123 Q6224222 Q347220 Q206685 Q2966099 Q617115 Q6787709 Q57968 Q5363905 Q27067551 Q551359 Q999229 Q3528336 Q9014744 Q5761007 Q610576 Q3160351 Q1291233 Q660917 Q15051455 Q741744 Q3371273 Q27031075 Q1811732 Q1113788 Q3188310 Q27031857 Q1131289 Q309240 Q3018977 Q7331547 Q3433199 Q1538469 Q211619 Q11586417 Q27055497 Q11522912 Q352365 Q7821750 Q3268108 Q1375265 Q313703 Q24259135 Q24259046 Q16030513 Q5387393 Q11644966 Q27067564 Q3811956 Q5490097 Q1018606 Q20155972 Q24259104 Q983349 Q23771657 Q19359177 Q15970956 Q379795 Q11621987 Q3195781 Q24547769 Q27055509 Q5301002 Q1143876 Q3675880 Q3573286 Q7426424 Q11627987 Q622678 Q7366035
(c(Q234460)|c(Q2342494),P110,c(Q502895))
action argmin
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P110
type Q502895
type Q2342494
[ANSWERS] had done the illustration of min number of texts or collectables
[[{'concept': 'Q234460'}, {'concept': 'Q2342494'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?v WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:Q234460 ) ( ontology:Q2342494 ) } } GROUP BY ?v } } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?j WHERE { { ?z rdf:type ontology:Q2342494 . ?j rdf:type ontology:Q502895 . ?z property:P110 ?j } UNION { ?j rdf:type ontology:Q502895 . ?z rdf:type ontology:Q234460 . ?z property:P110 ?j } } GROUP BY ?j } }
Masasumi Kakizaki Trudy Cooper Matthew Inman Neil Swaab Jean-Richard Geurts Stefano Raffaele Jean-Louis Mourier Tooru Fujisawa Walt Simonson Cory Loftis David Goetz Gene Colan Sean Murphy Terry Dodson Hitoshi Iwaaki Akira Kiduki Rudyard Kipling Gustave Doré X6suke Frank Newfeld Itaru Hinoue Andrew Bell Sean Phillips Bill Schwab Take Makoto Manabe Pablo Picasso Kwoon Moon-hee Charles Robinson Nick Bertozzi Hans G. Kresse Richard Forgues CHOCO Juan Ferreyra Francisco Solano López Rachel Dodson Paul Mendoza Louis Le Breton Rob G. Carlo Chiostri Michał Elwiro Andriolli Kenichi Tachibana Pako Katsuhiro Otomo Aliy Zirkle Vince Giarrano George Tate Carol Voges Sukumo Adabana Nami Adachi Jim Somerville Gabriel Rodriguez Dave Dorman Guy Davis Walt Josef Wenig Tommy Lee Edwards M. K. Perker Giorgio Vasari Yoshiyuki Sadamoto Frank Schoonover John Gilbert Sam Kieth Jan Kostěnec Kōshi Rikudō Ruroo Osamu Tsukasa Yasuo Kazuki Kelley Jones Zach Howard Gosho Aoyama Yasushi Tsukamoto abec Richard Corben Albert Edward Sterner Takuya Mitsuda Damon Willis Phil Hester Gabriel Andrade Tetsurō Komai Peyo Věnceslav Černý Henry Flint Tristan Jones Frank Teran Tite Kubo Natsume Ono Juanjo Guarnido Brian Thies Moritat Kiyotaka Haimura Watts Phillips Hugh Doak Copp Takao Aoki Louis-Henri Brévière Will Simpson Louis Rhead Yōko Hiraoka Antonio Cossu Charb Vladimír Rocman Erhard Altdorfer Tatsuya Yasuda 528 Anne Leduc-Dardill meola Kilian Plunkett Humberto Ramos Grzegorz Rosiński Masami Tsuda Eduardo Risso Cabu Andrea Mutti Alexandre Moisy Margrethe II of Denmark Will Conrad David Lloyd Mihály Zichy Kanisuke Takeshiba H. R. Hammond Philippe Francq Okiura Mac George Louisa Anne Meredith Nathaniel Orr François Chauveau Richard George Suter Patric Reynolds Joseph Schindelman Tim Hamilton Simon Bisley Steve McNiven Mark A. Nelson Kurt Wolff Mel Rubi Yoshinatsu Mori Gunna Grähs Allen Nunis Akira Akatsuki John Byrne Fujishima Takeji Albert Uderzo Christophe Bec Hidari Mato Matthäus Merian Yoshiaki Sukeno Bill Maus Go Nagai Sakura Asagi Tignous Hanamaru Nanto Hilary Knight Yūji Iwahara Jacques de Sève Stanisław Samostrzelnik Walter Crane Saki Ukai Marten Toonder Paul Galdone Agustin Alessio Lee Brimmicombe-Wood Ariel Olivetti Jul Chris Mooneyham Hiro Suzuhira Jean Giraud David Wenzel Rick Leonardi Laurent Sourisseau Gos Dale Baer Masayuki Ishikawa Paul Guinan Yutaka Murakami Doug Mahnke Tony Akins Luz Georges Wolinski Takeshi Obata Nick Orsi Marty Baumann Tommy McRae Eric Rohmann Takeshi Nogami Christopher Taylor KEI Frank Ver Beck Byron Howard Sydney Seymour Lucas Borja Montoro Newell Convers Wyeth Shiyoon Kim Kakuzō Fujiyama Philippe Honoré Michael Lark Kōji Fukiya Kevin O'Neill A. Barton Kent John Nadeau Doug Wheatley Kenjiro Hata Christopher Rush Yūsuke Nakamura Satoshi Yamamoto Daisuke Nishijima Tsunako Ronnie del Carmen
Margrethe II of Denmark, Pablo Picasso and Aliy Zirkle had done the illustration of min number of texts or collectables
Margrethe II of Denmark Pablo Picasso Aliy Zirkle
action argmin
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type text
action find_reverse_tuple_counts
relation illustrator
type common name
type collectable
[[{'concept': 'text'}, {'concept': 'collectable'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?v WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:text ) ( ontology:collectable ) } } GROUP BY ?v } } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?j WHERE { { ?z rdf:type ontology:collectable . ?j rdf:type ontology:common_name . ?z property:illustrator ?j } UNION { ?j rdf:type ontology:common_name . ?z rdf:type ontology:text . ?z property:illustrator ?j } } GROUP BY ?j } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q102139 Q5593 Q17114155
P26
Q502895
USER
Who are married to Margrethe II of Denmark, Pablo Picasso and Aliy Zirkle ?
(c(Q502895),P26,Q102139) (c(Q502895),P26,Q5593) (c(Q502895),P26,Q17114155)
action union
action filter_type
action find_reverse
entity Q102139
relation P26
type Q502895
action filter_type
action find_reverse
entity Q5593
relation P26
type Q502895
action filter_type
action find_reverse
entity Q17114155
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q102139'] [{'concept': 'Q502895'}, 'P26', 'Q5593'] [{'concept': 'Q502895'}, 'P26', 'Q17114155']
SELECT DISTINCT ?y WHERE { VALUES ( ?n ) { ( resource:Q102139 ) ( resource:Q5593 ) } . ?y property:P26 ?n }
Margrethe II of Denmark Pablo Picasso Aliy Zirkle
action union
action filter_type
action find_reverse
entity Margrethe II of Denmark
relation spouse
type common name
action filter_type
action find_reverse
entity Pablo Picasso
relation spouse
type common name
action filter_type
action find_reverse
entity Aliy Zirkle
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Margrethe II of Denmark'] [{'concept': 'common name'}, 'spouse', 'Pablo Picasso'] [{'concept': 'common name'}, 'spouse', 'Aliy Zirkle']
SELECT DISTINCT ?y WHERE { VALUES ( ?n ) { ( resource:Margrethe_II_of_Denmark ) ( resource:Pablo_Picasso ) } . ?y property:spouse ?n }
[]
common name
Q1389258 Q18587076 Q540665
SYSTEM
Henrik, Prince Consort of Denmark, Allen Moore, Françoise Gilot
Q1389258 Q273024 Q433150 Q540665 Q18587076
(c(Q502895),P26,Q102139) (c(Q502895),P26,Q5593) (c(Q502895),P26,Q17114155)
action union
action filter_type
action find_reverse
entity Q102139
relation P26
type Q502895
action filter_type
action find_reverse
entity Q5593
relation P26
type Q502895
action filter_type
action find_reverse
entity Q17114155
relation P26
type Q502895
[ANSWERS] are married to Margrethe II of Denmark, Pablo Picasso and Aliy Zirkle
[{'concept': 'Q502895'}, 'P26', 'Q102139'] [{'concept': 'Q502895'}, 'P26', 'Q5593'] [{'concept': 'Q502895'}, 'P26', 'Q17114155']
SELECT DISTINCT ?y WHERE { VALUES ( ?n ) { ( resource:Q102139 ) ( resource:Q5593 ) } . ?y property:P26 ?n }
Henrik, Prince Consort of Denmark Jacqueline Roque Olga Khokhlova Françoise Gilot Allen Moore
Henrik, Prince Consort of Denmark, Allen Moore and Françoise Gilot are married to Margrethe II of Denmark, Pablo Picasso and Aliy Zirkle
Henrik, Prince Consort of Denmark Allen Moore Françoise Gilot
action union
action filter_type
action find_reverse
entity Margrethe II of Denmark
relation spouse
type common name
action filter_type
action find_reverse
entity Pablo Picasso
relation spouse
type common name
action filter_type
action find_reverse
entity Aliy Zirkle
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Margrethe II of Denmark'] [{'concept': 'common name'}, 'spouse', 'Pablo Picasso'] [{'concept': 'common name'}, 'spouse', 'Aliy Zirkle']
SELECT DISTINCT ?y WHERE { VALUES ( ?n ) { ( resource:Margrethe_II_of_Denmark ) ( resource:Pablo_Picasso ) } . ?y property:spouse ?n }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1389258 Q18587076 Q540665
P26
Q502895
USER
Which people are the life partner of those ones ?
(Q1389258,P26,c(Q502895)) (Q18587076,P26,c(Q502895)) (Q540665,P26,c(Q502895))
action filter_type
action find
entity prev_answer
relation P26
type Q502895
['Q1389258', 'P26', {'concept': 'Q502895'}] ['Q18587076', 'P26', {'concept': 'Q502895'}] ['Q540665', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?h property:P26 ?n . ?n rdf:type ontology:Q502895 . VALUES ( ?h ) { ( resource:Q1389258 ) ( resource:Q273024 ) ( resource:Q433150 ) } }
Henrik, Prince Consort of Denmark Allen Moore Françoise Gilot
action filter_type
action find
entity prev_answer
relation spouse
type common name
['Henrik, Prince Consort of Denmark', 'spouse', {'concept': 'common name'}] ['Allen Moore', 'spouse', {'concept': 'common name'}] ['Françoise Gilot', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?h property:spouse ?n . ?n rdf:type ontology:common_name . VALUES ( ?h ) { ( resource:Henrik,_Prince_Consort_of_Denmark ) ( resource:Jacqueline_Roque ) ( resource:Olga_Khokhlova ) } }
[]
common name
Q102139 Q5593 Q17114155
SYSTEM
Margrethe II of Denmark, Pablo Picasso, Aliy Zirkle
Q102139 Q17114155 Q3264913 Q5593 Q200101
(Q1389258,P26,c(Q502895)) (Q18587076,P26,c(Q502895)) (Q540665,P26,c(Q502895))
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[ANSWERS] are the life partner of those ones
['Q1389258', 'P26', {'concept': 'Q502895'}] ['Q18587076', 'P26', {'concept': 'Q502895'}] ['Q540665', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?h property:P26 ?n . ?n rdf:type ontology:Q502895 . VALUES ( ?h ) { ( resource:Q1389258 ) ( resource:Q273024 ) ( resource:Q433150 ) } }
Margrethe II of Denmark Aliy Zirkle Luc Simon Pablo Picasso Jonas Salk
Margrethe II of Denmark, Pablo Picasso and Aliy Zirkle are the life partner of those ones
Margrethe II of Denmark Pablo Picasso Aliy Zirkle
action filter_type
action find
entity prev_answer
relation spouse
type common name
['Henrik, Prince Consort of Denmark', 'spouse', {'concept': 'common name'}] ['Allen Moore', 'spouse', {'concept': 'common name'}] ['Françoise Gilot', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?h property:spouse ?n . ?n rdf:type ontology:common_name . VALUES ( ?h ) { ( resource:Henrik,_Prince_Consort_of_Denmark ) ( resource:Jacqueline_Roque ) ( resource:Olga_Khokhlova ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5593
P1196
Q1931388
USER
What manner did Pablo Picasso die ?
(Q5593,P1196,c(Q1931388))
action filter_type
action find
entity Q5593
relation P1196
type Q1931388
['Q5593', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1931388 . resource:Q5593 property:P1196 ?o }
Pablo Picasso
action filter_type
action find
entity Pablo Picasso
relation manner of death
type cause of death
['Pablo Picasso', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:cause_of_death . resource:Pablo_Picasso property:manner_of_death ?o }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q5593,P1196,c(Q1931388))
action filter_type
action find
entity Q5593
relation P1196
type Q1931388
Pablo Picasso died in [ANSWER]
['Q5593', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1931388 . resource:Q5593 property:P1196 ?o }
natural causes
Pablo Picasso died in natural causes
natural causes
action filter_type
action find
entity Pablo Picasso
relation manner of death
type cause of death
['Pablo Picasso', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:cause_of_death . resource:Pablo_Picasso property:manner_of_death ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5593
P1066
Q502895
USER
Which person was the teacher of Pablo Picasso ?
(Q5593,P1066,c(Q502895))
action filter_type
action find
entity Q5593
relation P1066
type Q502895
['Q5593', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q5593 property:P1066 ?l . ?l rdf:type ontology:Q502895 }
Pablo Picasso
action filter_type
action find
entity Pablo Picasso
relation student of
type common name
['Pablo Picasso', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Pablo_Picasso property:student_of ?l . ?l rdf:type ontology:common_name }
[]
common name
Q2901542
SYSTEM
José Ruiz y Blasco
Q2901542
(Q5593,P1066,c(Q502895))
action filter_type
action find
entity Q5593
relation P1066
type Q502895
[ANSWER] was the teacher of Pablo Picasso
['Q5593', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q5593 property:P1066 ?l . ?l rdf:type ontology:Q502895 }
José Ruiz y Blasco
José Ruiz y Blasco was the teacher of Pablo Picasso
José Ruiz y Blasco
action filter_type
action find
entity Pablo Picasso
relation student of
type common name
['Pablo Picasso', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Pablo_Picasso property:student_of ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q565665
Q502895
USER
And also tell me about Ibn 'Asakir?
(Q565665,P1066,c(Q502895))
action filter_type
action find
entity Q565665
relation P1066
type Q502895
['Q565665', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q565665 property:P1066 ?i . ?i rdf:type ontology:Q502895 }
Ibn 'Asakir
action filter_type
action find
entity Ibn 'Asakir
relation student of
type common name
["Ibn 'Asakir", 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Ibn_'Asakir property:student_of ?i . ?i rdf:type ontology:common_name }
[]
common name
Q3180903 Q4115418
SYSTEM
Yusuf Hamdani, Abu al-Najib Suhrawardi
Q3180903 Q4115418
(Q565665,P1066,c(Q502895))
action filter_type
action find
entity Q565665
relation P1066
type Q502895
[ANSWERS]
['Q565665', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q565665 property:P1066 ?i . ?i rdf:type ontology:Q502895 }
Yusuf Hamdani Abu al-Najib Suhrawardi
Yusuf Hamdani Abu al-Najib Suhrawardi
action filter_type
action find
entity Ibn 'Asakir
relation student of
type common name
["Ibn 'Asakir", 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Ibn_'Asakir property:student_of ?i . ?i rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6185487 Q1389258
P40
Q502895
USER
Which people have Henrik, Prince Consort of Denmark or Harald Spens as a child ?
OR((c(Q502895),P40,Q1389258), (c(Q502895),P40,Q6185487))
action filter_type
action union
action find_reverse
entity Q1389258
relation P40
action find_reverse
entity Q6185487
relation P40
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q1389258'], [{'concept': 'Q502895'}, 'P40', 'Q6185487']]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?n ) { ( resource:Q1389258 ) ( resource:Q6185487 ) } . ?k property:P40 ?n } . ?k rdf:type ontology:Q502895 }
Harald Spens Henrik, Prince Consort of Denmark
action filter_type
action union
action find_reverse
entity Henrik, Prince Consort of Denmark
relation child
action find_reverse
entity Harald Spens
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Henrik, Prince Consort of Denmark'], [{'concept': 'common name'}, 'child', 'Harald Spens']]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?n ) { ( resource:Henrik,_Prince_Consort_of_Denmark ) ( resource:Harald_Spens ) } . ?k property:child ?n } . ?k rdf:type ontology:common_name }
[]
common name
Q20496305 Q6185468 Q5991781
SYSTEM
Renée-Yvonne Doursennot, Carl Gustaf Spens, André de Laborde de Monpezat
Q20496305 Q6185468 Q5991781
OR((c(Q502895),P40,Q1389258), (c(Q502895),P40,Q6185487))
action filter_type
action union
action find_reverse
entity Q1389258
relation P40
action find_reverse
entity Q6185487
relation P40
type Q502895
[ANSWERS] have Henrik, Prince Consort of Denmark or Harald Spens as a child
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q1389258'], [{'concept': 'Q502895'}, 'P40', 'Q6185487']]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?n ) { ( resource:Q1389258 ) ( resource:Q6185487 ) } . ?k property:P40 ?n } . ?k rdf:type ontology:Q502895 }
Renée-Yvonne Doursennot Carl Gustaf Spens André de Laborde de Monpezat
Renée-Yvonne Doursennot, Carl Gustaf Spens and André de Laborde de Monpezat have Henrik, Prince Consort of Denmark or Harald Spens as a child
Renée-Yvonne Doursennot Carl Gustaf Spens André de Laborde de Monpezat
action filter_type
action union
action find_reverse
entity Henrik, Prince Consort of Denmark
relation child
action find_reverse
entity Harald Spens
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Henrik, Prince Consort of Denmark'], [{'concept': 'common name'}, 'child', 'Harald Spens']]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?n ) { ( resource:Henrik,_Prince_Consort_of_Denmark ) ( resource:Harald_Spens ) } . ?k property:child ?n } . ?k rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1389258
P22
Q502895
USER
How many people are the offspring of Henrik, Prince Consort of Denmark ?
(c(Q502895),P22,Q1389258)
action count
action filter_type
action find_reverse
entity Q1389258
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q1389258']
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:P22 resource:Q1389258 . ?k rdf:type ontology:Q502895 }
Henrik, Prince Consort of Denmark
action count
action filter_type
action find_reverse
entity Henrik, Prince Consort of Denmark
relation father
type common name
[{'concept': 'common name'}, 'father', 'Henrik, Prince Consort of Denmark']
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:father resource:Henrik,_Prince_Consort_of_Denmark . ?k rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q1004037 Q159101
(c(Q502895),P22,Q1389258)
action count
action filter_type
action find_reverse
entity Q1389258
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q1389258']
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:P22 resource:Q1389258 . ?k rdf:type ontology:Q502895 }
Frederik, Crown Prince of Denmark Prince Joachim of Denmark
2
action count
action filter_type
action find_reverse
entity Henrik, Prince Consort of Denmark
relation father
type common name
[{'concept': 'common name'}, 'father', 'Henrik, Prince Consort of Denmark']
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { ?k property:father resource:Henrik,_Prince_Consort_of_Denmark . ?k rdf:type ontology:common_name }
[]