Simple Question (Direct)
Simple Question
Q6933707
P161
Q502895
USER
Which people starred in Mula Sa Puso ?
(Q6933707,P161,c(Q502895))
action filter_type
action find
entity Q6933707
relation P161
type Q502895
['Q6933707', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q6933707 property:P161 ?o }
Mula Sa Puso
action filter_type
action find
entity Mula Sa Puso
relation cast member
type common name
['Mula Sa Puso', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Mula_Sa_Puso property:cast_member ?o }
[]
common name
Q7332293 Q129159 Q3543546
SYSTEM
Rico Yan, Diether Ocampo, Claudine Barretto
Q3543546 Q129159 Q7332293 Q3543475
(Q6933707,P161,c(Q502895))
action filter_type
action find
entity Q6933707
relation P161
type Q502895
[ANSWERS] starred in Mula Sa Puso
['Q6933707', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q6933707 property:P161 ?o }
Claudine Barretto Diether Ocampo Rico Yan Rica Peralejo
Rico Yan, Diether Ocampo and Claudine Barretto starred in Mula Sa Puso
Rico Yan Diether Ocampo Claudine Barretto
action filter_type
action find
entity Mula Sa Puso
relation cast member
type common name
['Mula Sa Puso', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Mula_Sa_Puso property:cast_member ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6933707
P1040
Q502895
USER
Which person is the editor of Mula Sa Puso ?
(Q6933707,P1040,c(Q502895))
action filter_type
action find
entity Q6933707
relation P1040
type Q502895
['Q6933707', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q6933707 property:P1040 ?q . ?q rdf:type ontology:Q502895 }
Mula Sa Puso
action filter_type
action find
entity Mula Sa Puso
relation film editor
type common name
['Mula Sa Puso', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Mula_Sa_Puso property:film_editor ?q . ?q rdf:type ontology:common_name }
[]
common name
Q6297464
SYSTEM
Joyce Bernal
Q6297464
(Q6933707,P1040,c(Q502895))
action filter_type
action find
entity Q6933707
relation P1040
type Q502895
[ANSWER] is the editor of Mula Sa Puso
['Q6933707', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q6933707 property:P1040 ?q . ?q rdf:type ontology:Q502895 }
Joyce Bernal
Joyce Bernal is the editor of Mula Sa Puso
Joyce Bernal
action filter_type
action find
entity Mula Sa Puso
relation film editor
type common name
['Mula Sa Puso', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Mula_Sa_Puso property:film_editor ?q . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q6297464 Q928 Q16259667
P19
Q15617994
USER
Was that person born at Philippines and Wills Point Independent School District ?
(Q6297464,P19,Q928) (Q6297464,P19,Q16259667)
action is_in
entity Q6297464
action intersection
action find_reverse
entity Q928
relation P19
action find_reverse
entity Q16259667
relation P19
['Q6297464', 'P19', 'Q928'] ['Q6297464', 'P19', 'Q16259667']
ASK WHERE { resource:Q6297464 property:P19 resource:Q928 . resource:Q6297464 property:P19 resource:Q16259667 }
Joyce Bernal Philippines Wills Point Independent School District
action is_in
entity Joyce Bernal
action intersection
action find_reverse
entity Philippines
relation place of birth
action find_reverse
entity Wills Point Independent School District
relation place of birth
['Joyce Bernal', 'place of birth', 'Philippines'] ['Joyce Bernal', 'place of birth', 'Wills Point Independent School District']
ASK WHERE { resource:Joyce_Bernal property:place_of_birth resource:Philippines . resource:Joyce_Bernal property:place_of_birth resource:Wills_Point_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q6297464,P19,Q928) (Q6297464,P19,Q16259667)
action is_in
entity Q6297464
action intersection
action find_reverse
entity Q928
relation P19
action find_reverse
entity Q16259667
relation P19
[ANSWER]
['Q6297464', 'P19', 'Q928'] ['Q6297464', 'P19', 'Q16259667']
ASK WHERE { resource:Q6297464 property:P19 resource:Q928 . resource:Q6297464 property:P19 resource:Q16259667 }
YES and NO respectively
action is_in
entity Joyce Bernal
action intersection
action find_reverse
entity Philippines
relation place of birth
action find_reverse
entity Wills Point Independent School District
relation place of birth
['Joyce Bernal', 'place of birth', 'Philippines'] ['Joyce Bernal', 'place of birth', 'Wills Point Independent School District']
ASK WHERE { resource:Joyce_Bernal property:place_of_birth resource:Philippines . resource:Joyce_Bernal property:place_of_birth resource:Wills_Point_Independent_School_District }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P825
Q502895 Q7725634 Q2031291
USER
Which people are max number of literary works and releases dedicated to ?
(c(Q7725634)|c(Q2031291),P825,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q2031291
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?a ) { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?p ) WHERE { VALUES ( ?q ) { ( ontology:Q7725634 ) ( ontology:Q2031291 ) } . ?m rdf:type ?q } GROUP BY ?k } } . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?x ) WHERE { { ?y property:P825 ?c . ?c rdf:type ontology:Q502895 . ?y rdf:type ontology:Q7725634 } UNION { ?y property:P825 ?c . ?c rdf:type ontology:Q502895 . ?y rdf:type ontology:Q2031291 } } GROUP BY ?c } . FILTER ( ?x = ?a ) }
action argmax
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type release
[[{'concept': 'literary work'}, {'concept': 'release'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?a ) { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?p ) WHERE { VALUES ( ?q ) { ( ontology:literary_work ) ( ontology:release ) } . ?m rdf:type ?q } GROUP BY ?k } } . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?x ) WHERE { { ?y property:dedicated_to ?c . ?c rdf:type ontology:common_name . ?y rdf:type ontology:literary_work } UNION { ?y property:dedicated_to ?c . ?c rdf:type ontology:common_name . ?y rdf:type ontology:release } } GROUP BY ?c } . FILTER ( ?x = ?a ) }
[]
common name literary work release
Q392
SYSTEM
Bob Dylan
Q392
(c(Q7725634)|c(Q2031291),P825,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q2031291
Max number of literary works and releases are called [ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?a ) { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?p ) WHERE { VALUES ( ?q ) { ( ontology:Q7725634 ) ( ontology:Q2031291 ) } . ?m rdf:type ?q } GROUP BY ?k } } . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?x ) WHERE { { ?y property:P825 ?c . ?c rdf:type ontology:Q502895 . ?y rdf:type ontology:Q7725634 } UNION { ?y property:P825 ?c . ?c rdf:type ontology:Q502895 . ?y rdf:type ontology:Q2031291 } } GROUP BY ?c } . FILTER ( ?x = ?a ) }
Bob Dylan
Max number of literary works and releases are called Bob Dylan
Bob Dylan
action argmax
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type release
[[{'concept': 'literary work'}, {'concept': 'release'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?a ) { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?p ) WHERE { VALUES ( ?q ) { ( ontology:literary_work ) ( ontology:release ) } . ?m rdf:type ?q } GROUP BY ?k } } . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?x ) WHERE { { ?y property:dedicated_to ?c . ?c rdf:type ontology:common_name . ?y rdf:type ontology:literary_work } UNION { ?y property:dedicated_to ?c . ?c rdf:type ontology:common_name . ?y rdf:type ontology:release } } GROUP BY ?c } . FILTER ( ?x = ?a ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q392 Q1169098
P161
Q838948
USER
Does Pat Garrett and Billy the Kid have that person in its star cast ?
(Q1169098,P161,Q392)
action is_in
entity Q392
action find
entity Q1169098
relation P161
['Q1169098', 'P161', 'Q392']
ASK WHERE { resource:Q1169098 property:P161 resource:Q392 }
Bob Dylan Pat Garrett and Billy the Kid
action is_in
entity Bob Dylan
action find
entity Pat Garrett and Billy the Kid
relation cast member
['Pat Garrett and Billy the Kid', 'cast member', 'Bob Dylan']
ASK WHERE { resource:Pat_Garrett_and_Billy_the_Kid property:cast_member resource:Bob_Dylan }
[]
work of art
SYSTEM
YES
(Q1169098,P161,Q392)
action is_in
entity Q392
action find
entity Q1169098
relation P161
[ANSWER]
['Q1169098', 'P161', 'Q392']
ASK WHERE { resource:Q1169098 property:P161 resource:Q392 }
Yes
action is_in
entity Bob Dylan
action find
entity Pat Garrett and Billy the Kid
relation cast member
['Pat Garrett and Billy the Kid', 'cast member', 'Bob Dylan']
ASK WHERE { resource:Pat_Garrett_and_Billy_the_Kid property:cast_member resource:Bob_Dylan }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q799527 Q129159
P710 P26
Q502895
USER
Which people are married to Diether Ocampo or attended 2001 Badminton World Championships – Men's Doubles ?
OR((Q129159,P26,c(Q502895)), (Q799527,P710,c(Q502895)))
action filter_type
action union
action find
entity Q129159
relation P26
action find
entity Q799527
relation P710
type Q502895
{'OR': [['Q129159', 'P26', {'concept': 'Q502895'}], ['Q799527', 'P710', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . { { resource:Q129159 property:P26 ?f } UNION { resource:Q799527 property:P710 ?f } } }
2001 Badminton World Championships – Men's Doubles Diether Ocampo
action filter_type
action union
action find
entity Diether Ocampo
relation spouse
action find
entity 2001 Badminton World Championships – Men's Doubles
relation participant
type common name
{'OR': [['Diether Ocampo', 'spouse', {'concept': 'common name'}], ["2001 Badminton World Championships – Men's Doubles", 'participant', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . { { resource:Diether_Ocampo property:spouse ?f } UNION { resource:2001_Badminton_World_Championships_–_Men's_Doubles property:participant ?f } } }
[]
common name
Q1655641 Q1427090 Q1708938 Q1562334 Q1909528 Q1525637 Q484564 Q1745590 Q2064623 Q2643293
SYSTEM
Some of them are Ian Sullivan, Flandy Limpele, José Antonio Crespo, Petr Martinec, Matthew Hughes, Jesper Larsen, Kim Dong-moon, Klaus Raffeiner, Pavel Mečár, Alexandr Russkikh
Q1557743 Q1851672 Q1252572 Q1072465 Q562189 Q443579 Q1679949 Q1690512 Q27763814 Q27763815 Q27763812 Q27763813 Q1987195 Q2899534 Q2637086 Q496398 Q1525868 Q1255262 Q1471576 Q995060 Q1712051 Q27685652 Q1290255 Q1114212 Q489028 Q484564 Q1069758 Q15712404 Q2547343 Q2465350 Q1520539 Q1708938 Q607900 Q1563230 Q1866093 Q732000 Q197293 Q2056634 Q1681784 Q1168451 Q1541963 Q1606237 Q719320 Q1691992 Q1389734 Q1069761 Q1672953 Q1162702 Q1929540 Q13475968 Q471108 Q959424 Q1229623 Q1745590 Q1562334 Q1909528 Q197225 Q1541330 Q1687172 Q1341683 Q466432 Q460190 Q3550248 Q463093 Q1966653 Q1224966 Q459882 Q497621 Q823102 Q1689137 Q2064623 Q1525637 Q1650459 Q326510 Q1571143 Q1189305 Q1175262 Q1584588 Q1427090 Q1933228 Q983439 Q2279191 Q1324588 Q1685082 Q27120476 Q472859 Q27105 Q1238604 Q27613204 Q909783 Q871034 Q573020 Q503753 Q27672018 Q2057756 Q1928374 Q1071369 Q631800 Q2669379 Q715500 Q2389148 Q2602592 Q1645795 Q1632796 Q1749734 Q1899538 Q1077008 Q1655641 Q2599776 Q2220266 Q2643293 Q2076018 Q1138641 Q512243 Q336376 Q650343 Q125280 Q2406123 Q1691518 Q1359667 Q1602420 Q1379499 Q27613207 Q27613209 Q484549 Q1866709 Q1700239 Q221763 Q1061914
OR((Q129159,P26,c(Q502895)), (Q799527,P710,c(Q502895)))
action filter_type
action union
action find
entity Q129159
relation P26
action find
entity Q799527
relation P710
type Q502895
[ANSWERS] are married to Diether Ocampo or attended 2001 Badminton World Championships – Men's Doubles
{'OR': [['Q129159', 'P26', {'concept': 'Q502895'}], ['Q799527', 'P710', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . { { resource:Q129159 property:P26 ?f } UNION { resource:Q799527 property:P710 ?f } } }
Guðmundur Adolfsson Michał Łogosz Theodoros Velkos Chien Yu-Hsun Jung Jae-sung Ingo Kindervater James Anderson Joachim Tesche Christian Unternährer Chris Davies Deng Chuanhai Chen Chun-Chi Nicolás Escartín Bertrand Gallet Alastair Gatt Lee Dong-soo Lee Wan Wah Jonas Rasmussen Frédéric Mawet Bryan Moody Julian Robertson Elias Wieland Graham Hurrell Khunakorn Sudhisodhi Lee Jae-jin Kim Dong-moon Chen Qiqiu Pascal Bircher Aleksandr Nikolaenko Toru Matsumoto Valeriy Strelcov José Antonio Crespo Sang Yang Rosman Razak Liu Yong Candra Wijaya Zhang Wei Patapol Ngernsrisuk Jan Fröhlich Ma Che Kong Graham Simpson Henrik Andersson Tony Gunawan Johan Holm Quinten van Dalm Cheng Rui Konstantin Dobrev Daniel Shirley Michael Søgaard Njörður Ludvigsson Tadashi Ohtsuka Keita Masuda Liu Kwok Wa Klaus Raffeiner Petr Martinec Matthew Hughes Zhang Jun Graeme Smith Jens Eriksen Eng Hian Fredrik Bergström Pramote Teerawiwatana Kristine Hermosa Sigit Budiarto Nathan Robertson Jochen Cassel Jürgen Koch Yoo Yong-sung Björn Siegemund Jim Laugesen Pavel Mečár Jesper Larsen Joakim Andersson Martin Lundgaard Hansen Halim Haryanto Dennis Lens David Lindley Harald Koch Flandy Limpele Mike Joppien Valiyaveetil Diju Shinya Ohtsuka Robert Mateusiak Jean-Michel Lefort Alexander Theiner Sergio Llopis Tsai Chia-Hsin Pavlos Charalambidis Truls Barth-Nilsen Brent Olynyk Kristof Hopp Anthony Clark Broddi Kristjánsson Aman Santosa Patrick Lau Kim Pong Michael Lamp Chew Choon Eng Chan Chong Ming Christos Tsartsidis Arturo Ruiz Takanori Aoki Yuzo Kubota Thomas Tesche Huang Shih-Chung Konstantin Tatranov Marián Šulko Chris Blair Ian Sullivan Yau Tsz Yuk Sanave Thomas Alexandr Russkikh Peter Jeffrey Craig Robertson Wouter Claes Choong Tan Fook Lars Paaske George Patis Tesana Panvisvas Michael Helber Wang Wei Helgi Jóhannesson Geoffrey Bellingham Egil Pay Markus Arnet Ha Tae-kwon Luben Panov John Gordon Albertus Susanto Njoto Chang Kim Wai
Ian Sullivan, Flandy Limpele, José Antonio Crespo, Petr Martinec, Matthew Hughes, Jesper Larsen, Kim Dong-moon, Klaus Raffeiner, Pavel Mečár and Alexandr Russkikh are married to Diether Ocampo or attended 2001 Badminton World Championships – Men's Doubles
Ian Sullivan Flandy Limpele José Antonio Crespo Petr Martinec Matthew Hughes Jesper Larsen Kim Dong-moon Klaus Raffeiner Pavel Mečár Alexandr Russkikh
action filter_type
action union
action find
entity Diether Ocampo
relation spouse
action find
entity 2001 Badminton World Championships – Men's Doubles
relation participant
type common name
{'OR': [['Diether Ocampo', 'spouse', {'concept': 'common name'}], ["2001 Badminton World Championships – Men's Doubles", 'participant', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . { { resource:Diether_Ocampo property:spouse ?f } UNION { resource:2001_Badminton_World_Championships_–_Men's_Doubles property:participant ?f } } }
[]