Simple Question (Direct)
Simple Question
Q12330002
P57
Q502895
USER
Who was Oldboys directed by ?
(Q12330002,P57,c(Q502895))
action filter_type
action find
entity Q12330002
relation P57
type Q502895
['Q12330002', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q12330002 property:P57 ?m . ?m rdf:type ontology:Q502895 }
Oldboys
action filter_type
action find
entity Oldboys
relation director
type common name
['Oldboys', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Oldboys property:director ?m . ?m rdf:type ontology:common_name }
[]
common name
Q6187841
SYSTEM
Nikolaj Steen
Q6187841
(Q12330002,P57,c(Q502895))
action filter_type
action find
entity Q12330002
relation P57
type Q502895
Oldboys was directed by Steen [ANSWER]
['Q12330002', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q12330002 property:P57 ?m . ?m rdf:type ontology:Q502895 }
Nikolaj Steen
Oldboys was directed by Steen Nikolaj Steen
Nikolaj Steen
action filter_type
action find
entity Oldboys
relation director
type common name
['Oldboys', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Oldboys property:director ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12330002
P495
Q1048835
USER
Where did that work of art originate ?
(Q6187841,P495,c(Q1048835))
action filter_type
action find
entity Q12330002
relation P495
type Q1048835
['Q6187841', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q12330002 property:P495 ?n . ?n rdf:type ontology:Q1048835 }
Oldboys
action filter_type
action find
entity Oldboys
relation country of origin
type political territorial entity
['Nikolaj Steen', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Oldboys property:country_of_origin ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35
SYSTEM
Denmark
Q35
(Q6187841,P495,c(Q1048835))
action filter_type
action find
entity Q12330002
relation P495
type Q1048835
That work of art originated in [ANSWER]
['Q6187841', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q12330002 property:P495 ?n . ?n rdf:type ontology:Q1048835 }
Denmark
That work of art originated in Denmark
Denmark
action filter_type
action find
entity Oldboys
relation country of origin
type political territorial entity
['Nikolaj Steen', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Oldboys property:country_of_origin ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q35 Q12308260
P27
Q502895
USER
Is Dennis Drud a citizen of that political territory ?
(Q12308260,P27,Q35)
action is_in
entity Q35
action find
entity Q12308260
relation P27
['Q12308260', 'P27', 'Q35']
ASK WHERE { resource:Q12308260 property:P27 resource:Q35 }
Denmark Dennis Drud
action is_in
entity Denmark
action find
entity Dennis Drud
relation country of citizenship
['Dennis Drud', 'country of citizenship', 'Denmark']
ASK WHERE { resource:Dennis_Drud property:country_of_citizenship resource:Denmark }
[]
common name
SYSTEM
YES
(Q12308260,P27,Q35)
action is_in
entity Q35
action find
entity Q12308260
relation P27
[ANSWER]
['Q12308260', 'P27', 'Q35']
ASK WHERE { resource:Q12308260 property:P27 resource:Q35 }
Yes
action is_in
entity Denmark
action find
entity Dennis Drud
relation country of citizenship
['Dennis Drud', 'country of citizenship', 'Denmark']
ASK WHERE { resource:Dennis_Drud property:country_of_citizenship resource:Denmark }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q35
P1313
Q12737077
USER
Which occupation is fulfilled by that political territory ?
action filter_type
action find
entity Q35
relation P1313
type Q12737077
SELECT DISTINCT ?r WHERE { resource:Q35 property:P1313 ?r . ?r rdf:type ontology:Q12737077 }
Denmark
action filter_type
action find
entity Denmark
relation office held by head of government
type occupation
SELECT DISTINCT ?r WHERE { resource:Denmark property:office_held_by_head_of_government ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q795477
SYSTEM
Prime Minister of Denmark
Q795477
action filter_type
action find
entity Q35
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that political territory
SELECT DISTINCT ?r WHERE { resource:Q35 property:P1313 ?r . ?r rdf:type ontology:Q12737077 }
Prime Minister of Denmark
The Prime Minister of Denmark is fulfilled by that political territory
Prime Minister of Denmark
action filter_type
action find
entity Denmark
relation office held by head of government
type occupation
SELECT DISTINCT ?r WHERE { resource:Denmark property:office_held_by_head_of_government ?r . ?r rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of approximately 3 occupations ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?z ) WHERE { ?l property:P417 ?a . ?a rdf:type ontology:Q502895 . ?l rdf:type ontology:Q12737077 } GROUP BY ?a } . FILTER ( ?z = 3 ) }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?z ) WHERE { ?l property:patron_saint ?a . ?a rdf:type ontology:common_name . ?l rdf:type ontology:occupation } GROUP BY ?a } . FILTER ( ?z = 3 ) }
[]
common name occupation
Q128538 Q192816 Q200895
SYSTEM
Luke the Evangelist, Saint Barbara, Agatha of Sicily
Q128538 Q192816 Q200895
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[ANSWERS] are the patron saint of approximately 3 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?z ) WHERE { ?l property:P417 ?a . ?a rdf:type ontology:Q502895 . ?l rdf:type ontology:Q12737077 } GROUP BY ?a } . FILTER ( ?z = 3 ) }
Luke the Evangelist Saint Barbara Agatha of Sicily
Luke the Evangelist, Saint Barbara and Agatha of Sicily are the patron saint of approximately 3 occupations
Luke the Evangelist Saint Barbara Agatha of Sicily
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?z ) WHERE { ?l property:patron_saint ?a . ?a rdf:type ontology:common_name . ?l rdf:type ontology:occupation } GROUP BY ?a } . FILTER ( ?z = 3 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P825
Q502895 Q41176 Q482994
USER
How many people are greater number of buildings or albums dedicated to than that person ?
(c(Q41176)|c(Q482994),P825,c(Q502895))
[[{'concept': 'Q41176'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?u ) { ( ?z ) ( ?x ) } . ?u property:P825 ?y } . ?z rdf:type ontology:Q41176 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q482994 }
[[{'concept': 'building'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?u ) { ( ?z ) ( ?x ) } . ?u property:dedicated_to ?y } . ?z rdf:type ontology:building . ?y rdf:type ontology:common_name . ?x rdf:type ontology:album }
[]
common name building album
Comparative|Count over More/Less|Mult. entity type|Clarification
Q192816
SYSTEM
Did you mean Saint Barbara ?
(c(Q41176)|c(Q482994),P825,c(Q502895))
[ANSWER]
[[{'concept': 'Q41176'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?u ) { ( ?z ) ( ?x ) } . ?u property:P825 ?y } . ?z rdf:type ontology:Q41176 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q482994 }
Did you mean Saint Barbara ?
Saint Barbara
[[{'concept': 'building'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?u ) { ( ?z ) ( ?x ) } . ?u property:dedicated_to ?y } . ?z rdf:type ontology:building . ?y rdf:type ontology:common_name . ?x rdf:type ontology:album }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Agatha of Sicily. Could you tell me the answer for that?
(c(Q41176)|c(Q482994),P825,c(Q502895))
Q200895
[[{'concept': 'Q41176'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
[[{'concept': 'building'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
[]
SYSTEM
66
Q249719 Q983142 Q392 Q11403872 Q65318 Q1774929 Q3190301 Q2288858 Q179718 Q7593283 Q173061 Q19629510 Q683792 Q888326 Q171411 Q94316 Q11074321 Q461258 Q4127503 Q1889720 Q55398 Q1666 Q174231 Q200188 Q541634 Q187550 Q313942 Q966298 Q1196817 Q433995 Q43600 Q314846 Q32613 Q11633375 Q311080 Q6918007 Q1036864 Q314802 Q700317 Q171977 Q11403852 Q183332 Q269520 Q346 Q1132756 Q11619989 Q382005 Q3618054 Q349287 Q3099236 Q316658 Q179971 Q11368835 Q164294 Q164522 Q11403867 Q149727 Q31966 Q468122 Q310462 Q10881970 Q232803 Q317997 Q40662 Q299179 Q836214
(c(Q41176)|c(Q482994),P825,c(Q502895))
[ANSWER]
[[{'concept': 'Q41176'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P825 ?y } UNION { ?x property:P825 ?y } } . ?z rdf:type ontology:Q41176 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q482994 }
Yui Julian the Hospitaller Bob Dylan Kitabatake Akiyoshi Kibitsuhiko-no-mikoto Ferreolus Just of Lyon Moriyoshi-shinnō Catherine of Alexandria St Govan Syd Barrett Saint Goustan Kitabatake Chikafusa Bob Wills Oda Nobunaga Kikuchi Taketoki Kaneyoshi-shinnō Yamato Takeru Ferrutio Cadoc Bernadette Soubirous Jacques Brel Meiji Jimmu Bobby Bland Toyotomi Hideyoshi Go-Daigo Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Matthew the Apostle Emperor Kammu Minamoto no Yoshiie Prince Toyokiirihiko Uesugi Kenshin Motoharu Sano Kitabatake Akiie Tenji Yasuhito Chichibu Tokugawa Ieyasu Kitabatake Morichika Saint Sebastian Shōken Louis IX of France Sakai Tadatsugu Prince Uji no Wakiiratsuko Sugawara no Michizane Annibale Cressoni Sutoku Minamoto no Tsunemoto Go-Toba Chūai Shizuko Nogi Saint Anna Hieda no Are Kitabatake Akinobu Saint Giles Mark the Evangelist Nogi Maresuke Saigō Takamori Itsuse no Mikoto Empress Jingu Ōjin John the Baptist Kōmei Princess Tōchi
66
[[{'concept': 'building'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:dedicated_to ?y } UNION { ?x property:dedicated_to ?y } } . ?z rdf:type ontology:building . ?y rdf:type ontology:common_name . ?x rdf:type ontology:album }
[]