Simple Question (Direct)
Simple Question
Q7702476
P106
Q12737077
USER
Which occupation is the profession of Terje Leonardsen ?
(Q7702476,P106,c(Q12737077))
action filter_type
action find
entity Q7702476
relation P106
type Q12737077
['Q7702476', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q12737077 . resource:Q7702476 property:P106 ?c }
Terje Leonardsen
action filter_type
action find
entity Terje Leonardsen
relation occupation
type occupation
['Terje Leonardsen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:occupation . resource:Terje_Leonardsen property:occupation ?c }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q7702476,P106,c(Q12737077))
action filter_type
action find
entity Q7702476
relation P106
type Q12737077
[ANSWER] is the profession of Terje Leonardsen
['Q7702476', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q12737077 . resource:Q7702476 property:P106 ?c }
association football player
Association football player is the profession of Terje Leonardsen
association football player
action filter_type
action find
entity Terje Leonardsen
relation occupation
type occupation
['Terje Leonardsen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:occupation . resource:Terje_Leonardsen property:occupation ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7702476
P54
Q12973014
USER
Which sports team is Terje Leonardsen a member of ?
(Q7702476,P54,c(Q12973014))
action filter_type
action find
entity Q7702476
relation P54
type Q12973014
['Q7702476', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12973014 . resource:Q7702476 property:P54 ?w }
Terje Leonardsen
action filter_type
action find
entity Terje Leonardsen
relation member of sports team
type sports team
['Terje Leonardsen', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sports_team . resource:Terje_Leonardsen property:member_of_sports_team ?w }
[]
sports team
Q5971834
SYSTEM
IL Flint
Q5971834
(Q7702476,P54,c(Q12973014))
action filter_type
action find
entity Q7702476
relation P54
type Q12973014
[ANSWER] is Terje Leonardsen a member of
['Q7702476', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12973014 . resource:Q7702476 property:P54 ?w }
IL Flint
IL Flint is Terje Leonardsen a member of
IL Flint
action filter_type
action find
entity Terje Leonardsen
relation member of sports team
type sports team
['Terje Leonardsen', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sports_team . resource:Terje_Leonardsen property:member_of_sports_team ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7702476
P21
Q290
USER
Which sex does that person have ?
(Q5971834,P21,c(Q290))
action filter_type
action find
entity Q7702476
relation P21
type Q290
['Q5971834', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q7702476 property:P21 ?u . ?u rdf:type ontology:Q290 }
Terje Leonardsen
action filter_type
action find
entity Terje Leonardsen
relation gender
type sex
['IL Flint', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Terje_Leonardsen property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5971834,P21,c(Q290))
action filter_type
action find
entity Q7702476
relation P21
type Q290
That person has a [ANSWER]
['Q5971834', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q7702476 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Terje Leonardsen
relation gender
type sex
['IL Flint', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Terje_Leonardsen property:gender ?u . ?u rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q11928268
P21
Q502895
USER
Does Jordi Albelda i Juan have that sex as the sex ?
(Q11928268,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q11928268
relation P21
['Q11928268', 'P21', 'Q6581097']
ASK WHERE { resource:Q11928268 property:P21 resource:Q6581097 }
male Jordi Albelda i Juan
action is_in
entity male
action find
entity Jordi Albelda i Juan
relation gender
['Jordi Albelda i Juan', 'gender', 'male']
ASK WHERE { resource:Jordi_Albelda_i_Juan property:gender resource:male }
[]
common name
SYSTEM
YES
(Q11928268,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q11928268
relation P21
[ANSWER]
['Q11928268', 'P21', 'Q6581097']
ASK WHERE { resource:Q11928268 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Jordi Albelda i Juan
relation gender
['Jordi Albelda i Juan', 'gender', 'male']
ASK WHERE { resource:Jordi_Albelda_i_Juan property:gender resource:male }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q386724 Q191067
USER
Which occupations were the main subjects in the work atleast 1 works or articles ?
(c(Q386724)|c(Q191067),P921,c(Q12737077))
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 1
[[{'concept': 'Q386724'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:Q386724 ) ( ontology:Q191067 ) } . ?g rdf:type ?s } GROUP BY ?n } . FILTER ( ?m >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 1
[[{'concept': 'work'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:work ) ( ontology:article ) } . ?g rdf:type ?s } GROUP BY ?n } . FILTER ( ?m >= 1 ) }
[]
occupation work article
Q316070 Q182436 Q16746569
SYSTEM
Fletcher Christian, librarian, high school student
Q172907 Q9402 Q316070 Q510373 Q152002 Q16746569 Q732358 Q182436 Q16003532
(c(Q386724)|c(Q191067),P921,c(Q12737077))
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 1
[ANSWERS] were the main subjects in the work atleast 1 works or articles
[[{'concept': 'Q386724'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:Q386724 ) ( ontology:Q191067 ) } . ?g rdf:type ?s } GROUP BY ?n } . FILTER ( ?m >= 1 ) }
praetor ninja Fletcher Christian Lord High Steward pastor high school student Nomarch librarian middle school student
Fletcher Christian, librarian and high school student were the main subjects in the work atleast 1 works or articles
Fletcher Christian librarian high school student
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 1
[[{'concept': 'work'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:work ) ( ontology:article ) } . ?g rdf:type ?s } GROUP BY ?n } . FILTER ( ?m >= 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P921
Q838948
USER
How many works of art were primarily based on that occupation ?
(c(Q838948),P921,Q16746569)
[{'concept': 'Q838948'}, 'P921', 'Q16746569']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P921 resource:Q16746569 . ?z rdf:type ontology:Q838948 }
[{'concept': 'work of art'}, 'main subject', 'high school student']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:main_subject resource:high_school_student . ?z rdf:type ontology:work_of_art }
[]
work of art
Quantitative|Count|Single entity type|Clarification
Q182436
SYSTEM
Did you mean librarian ?
(c(Q838948),P921,Q316070) (c(Q838948),P921,Q182436) (c(Q838948),P921,Q16746569)
[ANSWER]
[{'concept': 'Q838948'}, 'P921', 'Q316070'] [{'concept': 'Q838948'}, 'P921', 'Q182436'] [{'concept': 'Q838948'}, 'P921', 'Q16746569']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P921 resource:Q16746569 . ?z rdf:type ontology:Q838948 }
Did you mean librarian ?
librarian
[{'concept': 'work of art'}, 'main subject', 'Fletcher Christian'] [{'concept': 'work of art'}, 'main subject', 'librarian'] [{'concept': 'work of art'}, 'main subject', 'high school student']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:main_subject resource:high_school_student . ?z rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant high school student. Could you tell me the answer for that?
(c(Q838948),P921,Q16746569)
Q16746569
[{'concept': 'Q838948'}, 'P921', 'Q16746569']
[{'concept': 'work of art'}, 'main subject', 'high school student']
[]
SYSTEM
13
Q726789 Q11190952 Q3930134 Q858628 Q1363909 Q24673 Q3759249 Q804434 Q1185099 Q697479 Q2364088 Q2364092 Q804429
(c(Q838948),P921,Q16746569)
[ANSWER]
[{'concept': 'Q838948'}, 'P921', 'Q16746569']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P921 resource:Q16746569 . ?z rdf:type ontology:Q838948 }
Yo-Yo Girl Cop BE-BOP-HIGHSCHOOL Ranma ½ One Grew Over the Kuno's Nest Gokusen: The Movie Bleach: Fade to Black Bleach: Hell Verse A Certain Magical Index: The Movie – The Miracle of Endymion Bleach: Memories of Nobody Star Driver: Kagayaki no Takuto Marmalade Boy Sukeban Deka The Movie Sukeban Deka the Movie 2: Counter-Attack from the Kazama Sisters Bleach: The DiamondDust Rebellion
13
[{'concept': 'work of art'}, 'main subject', 'high school student']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:main_subject resource:high_school_student . ?z rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q696060 Q7702476
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Terje Leonardsen or Arnold Rutkowski ?
OR((Q7702476,P27,c(Q15617994)), (Q696060,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7702476
relation P27
action find
entity Q696060
relation P27
type Q15617994
{'OR': [['Q7702476', 'P27', {'concept': 'Q15617994'}], ['Q696060', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { { resource:Q7702476 property:P27 ?m } UNION { resource:Q696060 property:P27 ?m } } }
Arnold Rutkowski Terje Leonardsen
action filter_type
action union
action find
entity Terje Leonardsen
relation country of citizenship
action find
entity Arnold Rutkowski
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Terje Leonardsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Arnold Rutkowski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Terje_Leonardsen property:country_of_citizenship ?m } UNION { resource:Arnold_Rutkowski property:country_of_citizenship ?m } } }
[]
designation for an administrative territorial entity
Q20 Q36
SYSTEM
Norway, Poland
Q20 Q36
OR((Q7702476,P27,c(Q15617994)), (Q696060,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7702476
relation P27
action find
entity Q696060
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Terje Leonardsen or Arnold Rutkowski
{'OR': [['Q7702476', 'P27', {'concept': 'Q15617994'}], ['Q696060', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { { resource:Q7702476 property:P27 ?m } UNION { resource:Q696060 property:P27 ?m } } }
Norway Poland
Norway and Poland are the countries of citizenship of Terje Leonardsen or Arnold Rutkowski
Norway Poland
action filter_type
action union
action find
entity Terje Leonardsen
relation country of citizenship
action find
entity Arnold Rutkowski
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Terje Leonardsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Arnold Rutkowski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Terje_Leonardsen property:country_of_citizenship ?m } UNION { resource:Arnold_Rutkowski property:country_of_citizenship ?m } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1264773
P710
Q15275719
USER
Were those administrative territories a participant of Tour of Qinghai Lake ?
(Q1264773,P710,Q20) (Q1264773,P710,Q36)
action is_in
entity prev_answer
action find
entity Q1264773
relation P710
['Q1264773', 'P710', 'Q20'] ['Q1264773', 'P710', 'Q36']
ASK WHERE { resource:Q1264773 property:P710 ?h . VALUES ( ?h ) { ( resource:Q20 ) ( resource:Q36 ) } }
Tour of Qinghai Lake
action is_in
entity prev_answer
action find
entity Tour of Qinghai Lake
relation participant
['Tour of Qinghai Lake', 'participant', 'Norway'] ['Tour of Qinghai Lake', 'participant', 'Poland']
ASK WHERE { resource:Tour_of_Qinghai_Lake property:participant ?h . VALUES ( ?h ) { ( resource:Norway ) ( resource:Poland ) } }
[]
recurring event
SYSTEM
NO
(Q1264773,P710,Q20) (Q1264773,P710,Q36)
action is_in
entity prev_answer
action find
entity Q1264773
relation P710
[ANSWER]
['Q1264773', 'P710', 'Q20'] ['Q1264773', 'P710', 'Q36']
ASK WHERE { resource:Q1264773 property:P710 ?h . VALUES ( ?h ) { ( resource:Q20 ) ( resource:Q36 ) } }
No
action is_in
entity prev_answer
action find
entity Tour of Qinghai Lake
relation participant
['Tour of Qinghai Lake', 'participant', 'Norway'] ['Tour of Qinghai Lake', 'participant', 'Poland']
ASK WHERE { resource:Tour_of_Qinghai_Lake property:participant ?h . VALUES ( ?h ) { ( resource:Norway ) ( resource:Poland ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P530
Q1048835
USER
Which political territories have tactful political relations with Poland ?
(c(Q1048835),P530,Q36)
action filter_type
action find
entity Q36
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q36']
SELECT DISTINCT ?i WHERE { resource:Q36 property:P530 ?i . ?i rdf:type ontology:Q1048835 }
Poland
action filter_type
action find
entity Poland
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland']
SELECT DISTINCT ?i WHERE { resource:Poland property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q408 Q183
SYSTEM
Canada, Australia, Germany
Q16 Q408 Q183
(c(Q1048835),P530,Q36)
action filter_type
action find
entity Q36
relation P530
type Q1048835
[ANSWERS] have tactful political relations with Poland
[{'concept': 'Q1048835'}, 'P530', 'Q36']
SELECT DISTINCT ?i WHERE { resource:Q36 property:P530 ?i . ?i rdf:type ontology:Q1048835 }
Canada Australia Germany
Canada, Australia and Germany have tactful political relations with Poland
Canada Australia Germany
action filter_type
action find
entity Poland
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland']
SELECT DISTINCT ?i WHERE { resource:Poland property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16
P159
Q43229
USER
Which organizations have their HQ location at that political territory ?
(c(Q43229),P159,Q16)
action filter_type
action find_reverse
entity Q16
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q16']
SELECT DISTINCT ?y WHERE { ?y property:P159 resource:Q16 . ?y rdf:type ontology:Q43229 }
Canada
action filter_type
action find_reverse
entity Canada
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Canada']
SELECT DISTINCT ?y WHERE { ?y property:headquarters_location resource:Canada . ?y rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q16
SYSTEM
Did you mean Canada ?
Q16 Q408 Q183
(c(Q43229),P159,Q16) (c(Q43229),P159,Q408) (c(Q43229),P159,Q183)
[ANSWER]
[{'concept': 'Q43229'}, 'P159', 'Q16'] [{'concept': 'Q43229'}, 'P159', 'Q408'] [{'concept': 'Q43229'}, 'P159', 'Q183']
SELECT DISTINCT ?y WHERE { ?y property:P159 resource:Q16 . ?y rdf:type ontology:Q43229 }
Canada Australia Germany
Did you mean Canada ?
Canada
[{'concept': 'organization'}, 'headquarters location', 'Canada'] [{'concept': 'organization'}, 'headquarters location', 'Australia'] [{'concept': 'organization'}, 'headquarters location', 'Germany']
SELECT DISTINCT ?y WHERE { ?y property:headquarters_location resource:Canada . ?y rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q43229),P159,Q16)
[{'concept': 'Q43229'}, 'P159', 'Q16']
[{'concept': 'organization'}, 'headquarters location', 'Canada']
[]
Q4929023 Q2827955 Q3487952
SYSTEM
Blue Cross Canada, Les Ailes de la Mode, Nuclear Waste Management Organization (Canada)
Q4915270 Q5130893 Q16844433 Q4929023 Q2827955 Q3041975 Q3578623 Q5164747 Q17016809 Q5030175 Q3569281 Q5278283 Q4273673 Q5710158 Q3487726 Q18208352 Q7072749 Q7622866 Q7538048 Q3489548 Q3002071 Q3086666 Q5522275 Q3487952 Q17400092 Q4811599 Q1419806 Q5310019 Q714107 Q2981842 Q6030366 Q6044992
(c(Q43229),P159,Q16)
action filter_type
action find_reverse
entity Q16
relation P159
type Q43229
[ANSWERS] have their HQ location at that political territory
[{'concept': 'Q43229'}, 'P159', 'Q16']
SELECT DISTINCT ?y WHERE { ?y property:P159 resource:Q16 . ?y rdf:type ontology:Q43229 }
Bioscrypt Inc. Clearnet HomeSense Blue Cross Canada Les Ailes de la Mode Dynamic Structures Canadian Forces Exchange System Consumers Software Quidditch Canada Canadian Institute for Health Information Windmill Software Dingwall Designer Guitars ALOE Systems Help the Aged Canada Canadian Paediatric Society Certified Health Executive ONEXONE Street Kids International Skystone Systems Solo Mobile Craig Wireless Fraser Milner Casgrain Garden Networks Nuclear Waste Management Organization (Canada) Mallette Astron-6 BTJunkie DuProprio.com Artumas Group Corus Québec InfoInterActive InterTAN
Blue Cross Canada, Les Ailes de la Mode and Nuclear Waste Management Organization (Canada) have their HQ location at that political territory
Blue Cross Canada Les Ailes de la Mode Nuclear Waste Management Organization (Canada)
action filter_type
action find_reverse
entity Canada
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Canada']
SELECT DISTINCT ?y WHERE { ?y property:headquarters_location resource:Canada . ?y rdf:type ontology:organization }
[]