Simple Question (Direct)
Simple Question
Q3196510
P1196
Q1931388
USER
What manner did Kiichi Okamoto die ?
(Q3196510,P1196,c(Q1931388))
action filter_type
action find
entity Q3196510
relation P1196
type Q1931388
['Q3196510', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?g WHERE { resource:Q3196510 property:P1196 ?g . ?g rdf:type ontology:Q1931388 }
Kiichi Okamoto
action filter_type
action find
entity Kiichi Okamoto
relation manner of death
type cause of death
['Kiichi Okamoto', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?g WHERE { resource:Kiichi_Okamoto property:manner_of_death ?g . ?g rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q3196510,P1196,c(Q1931388))
action filter_type
action find
entity Q3196510
relation P1196
type Q1931388
Kiichi Okamoto died of [ANSWER]
['Q3196510', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?g WHERE { resource:Q3196510 property:P1196 ?g . ?g rdf:type ontology:Q1931388 }
natural causes
Kiichi Okamoto died of natural causes
natural causes
action filter_type
action find
entity Kiichi Okamoto
relation manner of death
type cause of death
['Kiichi Okamoto', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?g WHERE { resource:Kiichi_Okamoto property:manner_of_death ?g . ?g rdf:type ontology:cause_of_death }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3196510
P734
Q82799
USER
Who has the surname Kiichi Okamoto ?
(Q3196510,P734,c(Q82799))
action filter_type
action find
entity Q3196510
relation P734
type Q82799
['Q3196510', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q3196510 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Kiichi Okamoto
action filter_type
action find
entity Kiichi Okamoto
relation family name
type name
['Kiichi Okamoto', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Kiichi_Okamoto property:family_name ?j . ?j rdf:type ontology:name }
[]
name
Q21510019
SYSTEM
Okamoto
Q21510019
(Q3196510,P734,c(Q82799))
action filter_type
action find
entity Q3196510
relation P734
type Q82799
To [ANSWER] has the surname Kiichi [ANSWER]
['Q3196510', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q3196510 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Okamoto
To Okamoto has the surname Kiichi Okamoto
Okamoto
action filter_type
action find
entity Kiichi Okamoto
relation family name
type name
['Kiichi Okamoto', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Kiichi_Okamoto property:family_name ?j . ?j rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3196510
P509
Q2057971
USER
How did Kiichi Okamoto die ?
(Q3196510,P509,c(Q2057971))
action filter_type
action find
entity Q3196510
relation P509
type Q2057971
['Q3196510', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2057971 . resource:Q3196510 property:P509 ?s }
Kiichi Okamoto
action filter_type
action find
entity Kiichi Okamoto
relation cause of death
type health problem
['Kiichi Okamoto', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:health_problem . resource:Kiichi_Okamoto property:cause_of_death ?s }
[]
health problem
Q83319
SYSTEM
typhoid fever
Q83319
(Q3196510,P509,c(Q2057971))
action filter_type
action find
entity Q3196510
relation P509
type Q2057971
Kiichi Okamoto died of [ANSWER]
['Q3196510', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2057971 . resource:Q3196510 property:P509 ?s }
typhoid fever
Kiichi Okamoto died of typhoid fever
typhoid fever
action filter_type
action find
entity Kiichi Okamoto
relation cause of death
type health problem
['Kiichi Okamoto', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:health_problem . resource:Kiichi_Okamoto property:cause_of_death ?s }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q83319 Q908714
P2176
Q8386
USER
Is Truth drug used to cure that health problem ?
(Q83319,P2176,Q908714)
action is_in
entity Q908714
action find
entity Q83319
relation P2176
['Q83319', 'P2176', 'Q908714']
ASK WHERE { resource:Q83319 property:P2176 resource:Q908714 }
typhoid fever Truth drug
action is_in
entity Truth drug
action find
entity typhoid fever
relation drug used for treatment
['typhoid fever', 'drug used for treatment', 'Truth drug']
ASK WHERE { resource:typhoid_fever property:drug_used_for_treatment resource:Truth_drug }
[]
drug
SYSTEM
NO
(Q83319,P2176,Q908714)
action is_in
entity Q908714
action find
entity Q83319
relation P2176
[ANSWER]
['Q83319', 'P2176', 'Q908714']
ASK WHERE { resource:Q83319 property:P2176 resource:Q908714 }
No
action is_in
entity Truth drug
action find
entity typhoid fever
relation drug used for treatment
['typhoid fever', 'drug used for treatment', 'Truth drug']
ASK WHERE { resource:typhoid_fever property:drug_used_for_treatment resource:Truth_drug }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q11946202
P180
Q82799 Q340169 Q17335294
USER
Which names are depicted in approximately the same number of medias and coats of arms as butterfly ?
(c(Q340169)|c(Q17335294),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q11946202
relation P180
type Q340169
type Q17335294
[[{'concept': 'Q340169'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?d WHERE { { ?d rdf:type ontology:Q82799 . ?v rdf:type ontology:Q340169 . ?v property:P180 ?d } UNION { ?v property:P180 ?d . ?d rdf:type ontology:Q82799 . ?v rdf:type ontology:Q17335294 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:P180 resource:Q11946202 . { { ?k rdf:type ontology:Q17335294 } UNION { ?k rdf:type ontology:Q340169 } } } } . FILTER ( ?e = ?l ) }
butterfly
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity butterfly
relation depicts
type media
type flag or coat of arms
[[{'concept': 'media'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?d WHERE { { ?d rdf:type ontology:name . ?v rdf:type ontology:media . ?v property:depicts ?d } UNION { ?v property:depicts ?d . ?d rdf:type ontology:name . ?v rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:depicts resource:butterfly . { { ?k rdf:type ontology:flag_or_coat_of_arms } UNION { ?k rdf:type ontology:media } } } } . FILTER ( ?e = ?l ) }
[]
name media flag or coat of arms
Q1807269 Q876933 Q152
SYSTEM
leek, magi, fish
Q13219075 Q134609 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q340169)|c(Q17335294),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q11946202
relation P180
type Q340169
type Q17335294
[ANSWERS] are depicted in approximately the same number of medias and coats of arms as butterfly
[[{'concept': 'Q340169'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?d WHERE { { ?d rdf:type ontology:Q82799 . ?v rdf:type ontology:Q340169 . ?v property:P180 ?d } UNION { ?v property:P180 ?d . ?d rdf:type ontology:Q82799 . ?v rdf:type ontology:Q17335294 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:P180 resource:Q11946202 . { { ?k rdf:type ontology:Q17335294 } UNION { ?k rdf:type ontology:Q340169 } } } } . FILTER ( ?e = ?l ) }
octopus Cynara scolymus toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
Leek, magi and fish are depicted in approximately the same number of medias and coats of arms as butterfly
leek magi fish
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity butterfly
relation depicts
type media
type flag or coat of arms
[[{'concept': 'media'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?d WHERE { { ?d rdf:type ontology:name . ?v rdf:type ontology:media . ?v property:depicts ?d } UNION { ?v property:depicts ?d . ?d rdf:type ontology:name . ?v rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:depicts resource:butterfly . { { ?k rdf:type ontology:flag_or_coat_of_arms } UNION { ?k rdf:type ontology:media } } } } . FILTER ( ?e = ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q4767951
P180
Q82799 Q340169 Q17335294
USER
And what about cattle?
(c(Q340169)|c(Q17335294),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q4767951
relation P180
type Q340169
type Q17335294
[[{'concept': 'Q340169'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?z ) WHERE { VALUES ( ?j ) { ( ontology:Q340169 ) ( ontology:Q17335294 ) } . ?r rdf:type ?j } GROUP BY ?x } . FILTER ( ?z = ?n ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:Q340169 ) ( ontology:Q17335294 ) } } . ?y property:P180 resource:Q4767951 } } }
cattle
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity cattle
relation depicts
type media
type flag or coat of arms
[[{'concept': 'media'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?z ) WHERE { VALUES ( ?j ) { ( ontology:media ) ( ontology:flag_or_coat_of_arms ) } . ?r rdf:type ?j } GROUP BY ?x } . FILTER ( ?z = ?n ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:media ) ( ontology:flag_or_coat_of_arms ) } } . ?y property:depicts resource:cattle } } }
[]
name media flag or coat of arms
Q1807269 Q876933 Q152
SYSTEM
leek, magi, fish
Q13219075 Q134609 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q340169)|c(Q17335294),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q4767951
relation P180
type Q340169
type Q17335294
[ANSWERS]
[[{'concept': 'Q340169'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?z ) WHERE { VALUES ( ?j ) { ( ontology:Q340169 ) ( ontology:Q17335294 ) } . ?r rdf:type ?j } GROUP BY ?x } . FILTER ( ?z = ?n ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:Q340169 ) ( ontology:Q17335294 ) } } . ?y property:P180 resource:Q4767951 } } }
octopus Cynara scolymus toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
leek magi fish
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity cattle
relation depicts
type media
type flag or coat of arms
[[{'concept': 'media'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?z ) WHERE { VALUES ( ?j ) { ( ontology:media ) ( ontology:flag_or_coat_of_arms ) } . ?r rdf:type ?j } GROUP BY ?x } . FILTER ( ?z = ?n ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:media ) ( ontology:flag_or_coat_of_arms ) } } . ?y property:depicts resource:cattle } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q79529 Q82799 Q82799
USER
Which names come from atmost 1 chemical substances and names ?
(c(Q82799),P138,c(Q79529)|c(Q82799))
action atmost
action union
action find_tuple_counts
relation P138
type Q82799
type Q79529
action find_tuple_counts
relation P138
type Q82799
type Q82799
value 1
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q79529'}, {'concept': 'Q82799'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?o WHERE { VALUES ( ?z ) { ( ontology:Q79529 ) ( ontology:Q82799 ) } . ?f rdf:type ?z } GROUP BY ?o } . FILTER ( ?p <= 1 ) }
action atmost
action union
action find_tuple_counts
relation named after
type name
type chemical substance
action find_tuple_counts
relation named after
type name
type name
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'chemical substance'}, {'concept': 'name'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?o WHERE { VALUES ( ?z ) { ( ontology:chemical_substance ) ( ontology:name ) } . ?f rdf:type ?z } GROUP BY ?o } . FILTER ( ?p <= 1 ) }
[]
chemical substance name 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 Q23599481 Q1158323 Q1370531 Q16869665 Q1158446 Q1158882 Q8046631 Q11231408 Q24699545 Q13099004 Q17747435 Q15785531 Q21508058 Q16869754 Q5352294 Q20747163 Q813701 Q17847495 Q15629400 Q1746111 Q23885849 Q1812295 Q25343999 Q21161805 Q21449089 Q23783070 Q1643088 Q21507928 Q2909103 Q24529820 Q807882 Q21448754 Q23995126 Q25058808 Q21501910 Q18198433 Q13553585 Q24805372 Q24451619 Q21491852 Q19847573 Q568872 Q25303577 Q1260304 Q714189 Q21493520 Q18309769 Q17643158 Q21506697 Q2160221 Q16865178 Q26985935 Q179234 Q21517798 Q18198435 Q688520 Q928249 Q318363 Q24566045 Q1724227 Q26262632 Q23773623 Q20027829 Q18578754 Q25201582 Q1882407 Q24035235 Q22738156 Q13626156 Q19831835 Q16965278 Q20818054 Q16883336 Q16860286 Q25326750 Q16865812 Q20963077 Q612479 Q1755217 Q17625919 Q26247962 Q22922124 Q24689291 Q16877784 Q23301520 Q16865123 Q16148136 Q20727079 Q16881199 Q21491815 Q19899706 Q24229341
(c(Q82799),P138,c(Q79529)|c(Q82799))
action atmost
action union
action find_tuple_counts
relation P138
type Q82799
type Q79529
action find_tuple_counts
relation P138
type Q82799
type Q82799
value 1
[ANSWERS] come from atmost 1 chemical substances and names
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q79529'}, {'concept': 'Q82799'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?o WHERE { VALUES ( ?z ) { ( ontology:Q79529 ) ( ontology:Q82799 ) } . ?f rdf:type ?z } GROUP BY ?o } . FILTER ( ?p <= 1 ) }
Prévot Émile-Louis Kaplan Danziger Elizur Sha'aban Racine Poisson Renard Súla Rosario Meyer Ruby Pseudo-Lucian Louarn Lancaster de Bragança Bouvier Albrecht Meister (surname) Draper Smith Fisher Yael Fischer Saunier Larsen Ruzena Barber Delaroche Eastman Fisichella Saccharomyces carlsbergensis Becker Rózsa Dimorphotheca ecklonis Michael Gregorio Achaz Van Leemput Grenier Cain Lebreton Potier Ramos Mouton Boissel Rameau Barbus Müller Ahrens Mercier Dumoulin Boulanger Peleg Gold Bigot Métivier Poulain Laserbeak Palmer Vallon Berger Duce Bergmann 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 Saxon Voisin Roux MacGowan Kleineidam Zijlstra Ackermann Qutb Wald Giolla Íosa Silver Boucher Février Couture Aryaman Koehler Magowan Du Moulin Master of The Hours of Henri II von Mecklenburg-Schwerin Vigneron Napoli Aonchotheca moraveci Buffet Archer Schultheiss Picard Le Guen Sawyer Toscano
Abel, Rosario and Michael Gregorio come from atmost 1 chemical substances and names
Abel Rosario Michael Gregorio
action atmost
action union
action find_tuple_counts
relation named after
type name
type chemical substance
action find_tuple_counts
relation named after
type name
type name
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'chemical substance'}, {'concept': 'name'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?o WHERE { VALUES ( ?z ) { ( ontology:chemical_substance ) ( ontology:name ) } . ?f rdf:type ?z } GROUP BY ?o } . FILTER ( ?p <= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q152
P180
Q3305213
USER
How many paintings depict fish ?
(c(Q3305213),P180,Q152)
action count
action filter_type
action find_reverse
entity Q152
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q152']
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { ?c rdf:type ontology:Q3305213 . ?c property:P180 resource:Q152 }
fish
action count
action filter_type
action find_reverse
entity fish
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'fish']
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { ?c rdf:type ontology:painting . ?c property:depicts resource:fish }
[]
painting
SYSTEM
1
Q537192
(c(Q3305213),P180,Q152)
action count
action filter_type
action find_reverse
entity Q152
relation P180
type Q3305213
[ANSWER]
[{'concept': 'Q3305213'}, 'P180', 'Q152']
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { ?c rdf:type ontology:Q3305213 . ?c property:P180 resource:Q152 }
Christ in the House of Simon
1
action count
action filter_type
action find_reverse
entity fish
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'fish']
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { ?c rdf:type ontology:painting . ?c property:depicts resource:fish }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q8441
P180
Q3305213
USER
And how about man?
(c(Q3305213),P180,Q8441)
action count
action filter_type
action find_reverse
entity Q8441
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q8441']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:P180 resource:Q8441 . ?r rdf:type ontology:Q3305213 }
man
action count
action filter_type
action find_reverse
entity man
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'man']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:depicts resource:man . ?r rdf:type ontology:painting }
[]
painting
SYSTEM
87
Q290918 Q3605053 Q16941162 Q16941150 Q323155 Q18599436 Q570188 Q469722 Q19968488 Q20631772 Q18599448 Q7751053 Q24090417 Q733017 Q3005511 Q20022416 Q27464761 Q3504778 Q1215717 Q4003126 Q2790378 Q3698197 Q20057319 Q549172 Q24039998 Q2302517 Q2653851 Q2378534 Q25266032 Q653930 Q3220286 Q537192 Q18918189 Q2067336 Q18591537 Q22915268 Q567861 Q2604153 Q547923 Q15150145 Q20058526 Q3975688 Q3862683 Q2620028 Q21257918 Q977200 Q3837491 Q20701647 Q7401308 Q952482 Q3699558 Q18502750 Q11718038 Q25631163 Q24024781 Q549953 Q650189 Q1961034 Q18713957 Q577165 Q3696835 Q3797764 Q1119782 Q186953 Q1886263 Q3877893 Q22312819 Q3765046 Q21494568 Q24040013 Q1131272 Q24040004 Q3918454 Q3983794 Q27005745 Q19962648 Q3208044 Q21699178 Q5856992 Q430293 Q24039981 Q2736379 Q128910 Q18343236 Q22914523 Q18343248 Q17315852
(c(Q3305213),P180,Q8441)
action count
action filter_type
action find_reverse
entity Q8441
relation P180
type Q3305213
[ANSWER]
[{'concept': 'Q3305213'}, 'P180', 'Q8441']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:P180 resource:Q8441 . ?r rdf:type ontology:Q3305213 }
Last Supper Adam and Eve June January Marienaltar Vomit is Culture Trinity Severan Tondo The Embrace Joshua Richardson Bigelow Secret The Merciful Knight Sleep that knits up the ravell'd sleeve of care Saint George and the Princess Painted Cross View of a Roman house The taking of Jerusalem Kiss of Judas Coronation of the Virgin Last Supper Last Supper Crucifixion General Norcliffe in his study at Langton Hall Flight into Egypt Roman Street Scene Ecce Homo The Elevation of the Cross Annunciation Banquet scene Miracle of the Jealous Husband The Baptism of Christ Christ in the House of Simon Young Woman with a Tambourine Serving Wine Assumption of the Virgin Mary View of Catanzaro (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non) Conway Castle, Wales The Last Judgment Funerary Monument to Sir John Hawkwood The Raising of Lazarus Aux gloires du Lyonnais et du Beaujolais Johann Anton Sarg and three friends playing whist by candlelight. Massacre of the Innocents Equestrian Statue of Niccolò da Tolentino Delivery of the Keys Death playing chess Holy Trinity Jacob Wrestling with the Angel Landscape Mural Saint George and the Dragon Resurrection Vision of St. John on Patmos Camel Caravan at Rest Jan Kochanowski over the dead body of his daughter, Urszulka Seated hero The Meteor of August 18, 1783, as seen from the East Angle of the North Terrace, Windsor Castle Disputation of the Holy Sacrament Adoration of the Magi Prince of the Lilies Raja Surendra Vikram Shah at the age of 15 with his prime minister Sermon and Deeds of the Antichrist The Creation of Eve Coronation of the Virgin The Disputation with Simon Magus and the Crucifixion of Peter School of Athens The Crucifixion of St. Peter Noli me tangere Île Dorval Prophet Joel Erechtheum Artist in Caffè Greco in Rome Temptations of Christ The Salone of the Palazzo Barbaro Budslaŭ icon of Our Lady Temptation of Adam and Eve Chapelle Cardon Banker Ludvig Arosenius Last Supper Jean-Jacques Le Queu architecte, de l'Académie Royale des Sciences, Belles-lettres, et Beau-Arts de Rouen February The Resurrection Prayer in a Venetian Church Expulsion from the Garden of Eden The Last Supper "Big Bowl" (A Crow Chief) View near Fishkill, New York "Bourgeois" W---r, and His Squaw Pygmalion
87
action count
action filter_type
action find_reverse
entity man
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'man']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:depicts resource:man . ?r rdf:type ontology:painting }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q107940 Q1746111
P161 P138
Q502895
USER
Which people are Michael Gregorio named after or were casted in Star Trek: The Motion Picture ?
OR((Q1746111,P138,c(Q502895)), (Q107940,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1746111
relation P138
action find
entity Q107940
relation P161
type Q502895
{'OR': [['Q1746111', 'P138', {'concept': 'Q502895'}], ['Q107940', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q107940 property:P161 ?t } UNION { resource:Q1746111 property:P138 ?t } } . ?t rdf:type ontology:Q502895 }
Star Trek: The Motion Picture Michael Gregorio
action filter_type
action union
action find
entity Michael Gregorio
relation named after
action find
entity Star Trek: The Motion Picture
relation cast member
type common name
{'OR': [['Michael Gregorio', 'named after', {'concept': 'common name'}], ['Star Trek: The Motion Picture', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Star_Trek:_The_Motion_Picture property:cast_member ?t } UNION { resource:Michael_Gregorio property:named_after ?t } } . ?t rdf:type ontology:common_name }
[]
common name
Q435434 Q232917 Q940971 Q18683434 Q318412 Q44450 Q18683435 Q432731 Q16345 Q16297
SYSTEM
Some of them are Stephen Collins, Majel Barrett, Mark Lenard, Michael G. Jacob, James Doohan, Roger Aaron Brown, Daniela De Gregorio, Persis Khambatta, Leonard Nimoy, William Shatner
Q376176 Q435434 Q16345 Q44450 Q16349 Q18683435 Q16297 Q18683434 Q110154 Q254038 Q432731 Q711870 Q1894431 Q272214 Q232917 Q940971 Q318412
OR((Q1746111,P138,c(Q502895)), (Q107940,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1746111
relation P138
action find
entity Q107940
relation P161
type Q502895
Michael Gregorio are named casted by [ANSWERS]
{'OR': [['Q1746111', 'P138', {'concept': 'Q502895'}], ['Q107940', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q107940 property:P161 ?t } UNION { resource:Q1746111 property:P138 ?t } } . ?t rdf:type ontology:Q502895 }
Walter Koenig Stephen Collins Leonard Nimoy Roger Aaron Brown DeForest Kelley Daniela De Gregorio William Shatner Michael G. Jacob George Takei Nichelle Nichols Persis Khambatta Franklyn Seales Marcy Lafferty Grace Lee Whitney Majel Barrett Mark Lenard James Doohan
Michael Gregorio are named casted by Stephen Collins, Majel Barrett, Mark Lenard, Michael G. Jacob, James Doohan, Roger Aaron Brown, Daniela De Gregorio, Persis Khambatta, Leonard Nimoy and William Shatner
Stephen Collins Majel Barrett Mark Lenard Michael G. Jacob James Doohan Roger Aaron Brown Daniela De Gregorio Persis Khambatta Leonard Nimoy William Shatner
action filter_type
action union
action find
entity Michael Gregorio
relation named after
action find
entity Star Trek: The Motion Picture
relation cast member
type common name
{'OR': [['Michael Gregorio', 'named after', {'concept': 'common name'}], ['Star Trek: The Motion Picture', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Star_Trek:_The_Motion_Picture property:cast_member ?t } UNION { resource:Michael_Gregorio property:named_after ?t } } . ?t rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16345
P264
Q334453
USER
Which division is the record label of that person ?
(Q16345,P264,c(Q334453))
action filter_type
action find
entity Q16345
relation P264
type Q334453
['Q16345', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?x WHERE { resource:Q16345 property:P264 ?x . ?x rdf:type ontology:Q334453 }
Leonard Nimoy
action filter_type
action find
entity Leonard Nimoy
relation record label
type division
['Leonard Nimoy', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?x WHERE { resource:Leonard_Nimoy property:record_label ?x . ?x rdf:type ontology:division }
[]
division
Clarification for simple ques.
Q940971
SYSTEM
Did you mean Mark Lenard ?
Q435434 Q232917 Q940971 Q18683434 Q318412 Q44450 Q18683435 Q432731 Q16345 Q16297
(Q435434,P264,c(Q334453)) (Q232917,P264,c(Q334453)) (Q940971,P264,c(Q334453)) (Q18683434,P264,c(Q334453)) (Q318412,P264,c(Q334453)) (Q44450,P264,c(Q334453)) (Q18683435,P264,c(Q334453)) (Q432731,P264,c(Q334453)) (Q16345,P264,c(Q334453)) (Q16297,P264,c(Q334453))
[ANSWER]
['Q435434', 'P264', {'concept': 'Q334453'}] ['Q232917', 'P264', {'concept': 'Q334453'}] ['Q940971', 'P264', {'concept': 'Q334453'}] ['Q18683434', 'P264', {'concept': 'Q334453'}] ['Q318412', 'P264', {'concept': 'Q334453'}] ['Q44450', 'P264', {'concept': 'Q334453'}] ['Q18683435', 'P264', {'concept': 'Q334453'}] ['Q432731', 'P264', {'concept': 'Q334453'}] ['Q16345', 'P264', {'concept': 'Q334453'}] ['Q16297', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?x WHERE { resource:Q16345 property:P264 ?x . ?x rdf:type ontology:Q334453 }
Stephen Collins Majel Barrett Mark Lenard Michael G. Jacob James Doohan Roger Aaron Brown Daniela De Gregorio Persis Khambatta Leonard Nimoy William Shatner
Did you mean Mark Lenard ?
Mark Lenard
['Stephen Collins', 'record label', {'concept': 'division'}] ['Majel Barrett', 'record label', {'concept': 'division'}] ['Mark Lenard', 'record label', {'concept': 'division'}] ['Michael G. Jacob', 'record label', {'concept': 'division'}] ['James Doohan', 'record label', {'concept': 'division'}] ['Roger Aaron Brown', 'record label', {'concept': 'division'}] ['Daniela De Gregorio', 'record label', {'concept': 'division'}] ['Persis Khambatta', 'record label', {'concept': 'division'}] ['Leonard Nimoy', 'record label', {'concept': 'division'}] ['William Shatner', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?x WHERE { resource:Leonard_Nimoy property:record_label ?x . ?x rdf:type ontology:division }
[]
Simple Question (Coreferenced)
USER
No, I meant Leonard Nimoy. Could you tell me the answer for that?
(Q16345,P264,c(Q334453))
Q16345
['Q16345', 'P264', {'concept': 'Q334453'}]
['Leonard Nimoy', 'record label', {'concept': 'division'}]
[]
Q1251139
SYSTEM
Dot Records
Q1251139
(Q16345,P264,c(Q334453))
action filter_type
action find
entity Q16345
relation P264
type Q334453
Records [ANSWER] is the record label of that person
['Q16345', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?x WHERE { resource:Q16345 property:P264 ?x . ?x rdf:type ontology:Q334453 }
Dot Records
Records Dot Records is the record label of that person
Dot Records
action filter_type
action find
entity Leonard Nimoy
relation record label
type division
['Leonard Nimoy', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?x WHERE { resource:Leonard_Nimoy property:record_label ?x . ?x rdf:type ontology:division }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1251139 Q490442 Q30
P17
Q15617994
USER
Is Dot Records present in Hettenshausen and United States of America ?
(Q1251139,P17,Q490442) (Q1251139,P17,Q30)
action is_in
entity Q1251139
action intersection
action find_reverse
entity Q490442
relation P17
action find_reverse
entity Q30
relation P17
['Q1251139', 'P17', 'Q490442'] ['Q1251139', 'P17', 'Q30']
ASK WHERE { resource:Q1251139 property:P17 resource:Q490442 . resource:Q1251139 property:P17 resource:Q30 }
Dot Records Hettenshausen United States of America
action is_in
entity Dot Records
action intersection
action find_reverse
entity Hettenshausen
relation country
action find_reverse
entity United States of America
relation country
['Dot Records', 'country', 'Hettenshausen'] ['Dot Records', 'country', 'United States of America']
ASK WHERE { resource:Dot_Records property:country resource:Hettenshausen . resource:Dot_Records property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q1251139,P17,Q490442) (Q1251139,P17,Q30)
action is_in
entity Q1251139
action intersection
action find_reverse
entity Q490442
relation P17
action find_reverse
entity Q30
relation P17
[ANSWER]
['Q1251139', 'P17', 'Q490442'] ['Q1251139', 'P17', 'Q30']
ASK WHERE { resource:Q1251139 property:P17 resource:Q490442 . resource:Q1251139 property:P17 resource:Q30 }
NO and YES respectively
action is_in
entity Dot Records
action intersection
action find_reverse
entity Hettenshausen
relation country
action find_reverse
entity United States of America
relation country
['Dot Records', 'country', 'Hettenshausen'] ['Dot Records', 'country', 'United States of America']
ASK WHERE { resource:Dot_Records property:country resource:Hettenshausen . resource:Dot_Records property:country resource:United_States_of_America }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1251139
P112
Q502895
USER
What is the name of the founder of that division ?
action filter_type
action find
entity Q1251139
relation P112
type Q502895
SELECT DISTINCT ?q WHERE { resource:Q1251139 property:P112 ?q . ?q rdf:type ontology:Q502895 }
Dot Records
action filter_type
action find
entity Dot Records
relation founder
type common name
SELECT DISTINCT ?q WHERE { resource:Dot_Records property:founder ?q . ?q rdf:type ontology:common_name }
[]
common name
Q7292525
SYSTEM
Randy Wood
Q7292525
action filter_type
action find
entity Q1251139
relation P112
type Q502895
The name of the founder of that division is the [ANSWER]
SELECT DISTINCT ?q WHERE { resource:Q1251139 property:P112 ?q . ?q rdf:type ontology:Q502895 }
Randy Wood
The name of the founder of that division is the Randy Wood
Randy Wood
action filter_type
action find
entity Dot Records
relation founder
type common name
SELECT DISTINCT ?q WHERE { resource:Dot_Records property:founder ?q . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q7292525 Q36834 Q22145176
P106
Q12737077
USER
Does that person have the profession as composer and Ambassador of Germany to France ?
(Q7292525,P106,Q36834) (Q7292525,P106,Q22145176)
action is_in
entity Q7292525
action intersection
action find_reverse
entity Q36834
relation P106
action find_reverse
entity Q22145176
relation P106
['Q7292525', 'P106', 'Q36834'] ['Q7292525', 'P106', 'Q22145176']
ASK WHERE { resource:Q7292525 property:P106 resource:Q36834 . resource:Q7292525 property:P106 resource:Q22145176 }
Randy Wood composer Ambassador of Germany to France
action is_in
entity Randy Wood
action intersection
action find_reverse
entity composer
relation occupation
action find_reverse
entity Ambassador of Germany to France
relation occupation
['Randy Wood', 'occupation', 'composer'] ['Randy Wood', 'occupation', 'Ambassador of Germany to France']
ASK WHERE { resource:Randy_Wood property:occupation resource:composer . resource:Randy_Wood property:occupation resource:Ambassador_of_Germany_to_France }
[]
occupation
SYSTEM
YES and NO respectively
(Q7292525,P106,Q36834) (Q7292525,P106,Q22145176)
action is_in
entity Q7292525
action intersection
action find_reverse
entity Q36834
relation P106
action find_reverse
entity Q22145176
relation P106
[ANSWER]
['Q7292525', 'P106', 'Q36834'] ['Q7292525', 'P106', 'Q22145176']
ASK WHERE { resource:Q7292525 property:P106 resource:Q36834 . resource:Q7292525 property:P106 resource:Q22145176 }
YES and NO respectively
action is_in
entity Randy Wood
action intersection
action find_reverse
entity composer
relation occupation
action find_reverse
entity Ambassador of Germany to France
relation occupation
['Randy Wood', 'occupation', 'composer'] ['Randy Wood', 'occupation', 'Ambassador of Germany to France']
ASK WHERE { resource:Randy_Wood property:occupation resource:composer . resource:Randy_Wood property:occupation resource:Ambassador_of_Germany_to_France }
[]