Simple Question (Direct)
Simple Question
Q1699279
P20
Q56061
USER
Where did John Barry expire ?
(Q1699279,P20,c(Q56061))
action filter_type
action find
entity Q1699279
relation P20
type Q56061
['Q1699279', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1699279 property:P20 ?w . ?w rdf:type ontology:Q56061 }
John Barry
action filter_type
action find
entity John Barry
relation place of death
type administrative territorial entity
['John Barry', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:John_Barry property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3130
SYSTEM
Sydney
Q3130
(Q1699279,P20,c(Q56061))
action filter_type
action find
entity Q1699279
relation P20
type Q56061
John Barry expired [ANSWER]
['Q1699279', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1699279 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Sydney
John Barry expired Sydney
Sydney
action filter_type
action find
entity John Barry
relation place of death
type administrative territorial entity
['John Barry', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:John_Barry property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1699279
P140
Q879146
USER
What is the religious affiliation of John Barry ?
(Q1699279,P140,c(Q879146))
action filter_type
action find
entity Q1699279
relation P140
type Q879146
['Q1699279', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q879146 . resource:Q1699279 property:P140 ?f }
John Barry
action filter_type
action find
entity John Barry
relation religion
type Christian denomination
['John Barry', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Christian_denomination . resource:John_Barry property:religion ?f }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q1699279,P140,c(Q879146))
action filter_type
action find
entity Q1699279
relation P140
type Q879146
The religious affiliation of John Barry is a [ANSWER]
['Q1699279', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q879146 . resource:Q1699279 property:P140 ?f }
Roman Catholic Church
The religious affiliation of John Barry is a Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity John Barry
relation religion
type Christian denomination
['John Barry', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Christian_denomination . resource:John_Barry property:religion ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1699279
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q9592,P106,c(Q12737077))
action filter_type
action find
entity Q1699279
relation P106
type Q12737077
['Q9592', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1699279 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
John Barry
action filter_type
action find
entity John Barry
relation occupation
type occupation
['Roman Catholic Church', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:John_Barry property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q250867
SYSTEM
Catholic priest
Q250867
(Q9592,P106,c(Q12737077))
action filter_type
action find
entity Q1699279
relation P106
type Q12737077
[ANSWER] is the profession of that person
['Q9592', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1699279 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Catholic priest
Catholic priest is the profession of that person
Catholic priest
action filter_type
action find
entity John Barry
relation occupation
type occupation
['Roman Catholic Church', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:John_Barry property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q6782669 Q1699279
P106
Q12737077
USER
Or Masashi Ishibashi?
OR((Q1699279,P106,c(Q12737077)), (Q6782669,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1699279
relation P106
action find
entity Q6782669
relation P106
type Q12737077
{'OR': [['Q1699279', 'P106', {'concept': 'Q12737077'}], ['Q6782669', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?r ) { ( resource:Q1699279 ) ( resource:Q6782669 ) } . ?r property:P106 ?h } . ?h rdf:type ontology:Q12737077 }
Masashi Ishibashi John Barry
action filter_type
action union
action find
entity John Barry
relation occupation
action find
entity Masashi Ishibashi
relation occupation
type occupation
{'OR': [['John Barry', 'occupation', {'concept': 'occupation'}], ['Masashi Ishibashi', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?r ) { ( resource:John_Barry ) ( resource:Masashi_Ishibashi ) } . ?r property:occupation ?h } . ?h rdf:type ontology:occupation }
[]
occupation
Q250867 Q82955
SYSTEM
Catholic priest, politician
Q250867 Q82955
OR((Q1699279,P106,c(Q12737077)), (Q6782669,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1699279
relation P106
action find
entity Q6782669
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q1699279', 'P106', {'concept': 'Q12737077'}], ['Q6782669', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?r ) { ( resource:Q1699279 ) ( resource:Q6782669 ) } . ?r property:P106 ?h } . ?h rdf:type ontology:Q12737077 }
Catholic priest politician
Catholic priest politician
action filter_type
action union
action find
entity John Barry
relation occupation
action find
entity Masashi Ishibashi
relation occupation
type occupation
{'OR': [['John Barry', 'occupation', {'concept': 'occupation'}], ['Masashi Ishibashi', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?r ) { ( resource:John_Barry ) ( resource:Masashi_Ishibashi ) } . ?r property:occupation ?h } . ?h rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7358
P921
Q12737077 Q732577 Q2342494
USER
Which occupations were greater number of publications or collectables mainly about than clown ?
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q7358
relation P921
type Q732577
type Q2342494
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?w WHERE { VALUES ( ?m ) { ( ontology:Q732577 ) ( ontology:Q2342494 ) } . ?p rdf:type ?m } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e property:P921 resource:Q7358 . { { ?e rdf:type ontology:Q732577 } UNION { ?e rdf:type ontology:Q2342494 } } } } . FILTER ( ?t > ?d ) }
clown
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity clown
relation main subject
type publication
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?w WHERE { VALUES ( ?m ) { ( ontology:publication ) ( ontology:collectable ) } . ?p rdf:type ?m } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e property:main_subject resource:clown . { { ?e rdf:type ontology:publication } UNION { ?e rdf:type ontology:collectable } } } } . FILTER ( ?t > ?d ) }
[]
occupation publication collectable
Q42973 Q18145518 Q18220900
SYSTEM
architect, Member of the New Zealand House of Representatives, Member of the South Australian House of Assembly
Q39631 Q11631 Q774306 Q3809586 Q83307 Q4610556 Q18145518 Q2094335 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q29182 Q131524 Q14373094 Q18220900 Q16746569 Q15320003 Q16003605 Q49757 Q1238570 Q2259532
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q7358
relation P921
type Q732577
type Q2342494
The [ANSWERS] were greater number of publications or collectables mainly about than clown
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?w WHERE { VALUES ( ?m ) { ( ontology:Q732577 ) ( ontology:Q2342494 ) } . ?p rdf:type ?m } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e property:P921 resource:Q7358 . { { ?e rdf:type ontology:Q732577 } UNION { ?e rdf:type ontology:Q2342494 } } } } . FILTER ( ?t > ?d ) }
physician astronaut surgeon Wikipedian in Residence minister model Member of the New Zealand House of Representatives United States Attorney politician test pilot architect association football player ninja businessperson bishop entrepreneur rugby league player Member of the South Australian House of Assembly high school student migrant worker elementary school student poet political scientist cleric
The architect, Member of the New Zealand House of Representatives and Member of the South Australian House of Assembly were greater number of publications or collectables mainly about than clown
architect Member of the New Zealand House of Representatives Member of the South Australian House of Assembly
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity clown
relation main subject
type publication
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?w WHERE { VALUES ( ?m ) { ( ontology:publication ) ( ontology:collectable ) } . ?p rdf:type ?m } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e property:main_subject resource:clown . { { ?e rdf:type ontology:publication } UNION { ?e rdf:type ontology:collectable } } } } . FILTER ( ?t > ?d ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18220900
P17
Q1048835
USER
Which political territory is that occupation present in ?
(Q18220900,P17,c(Q1048835))
action filter_type
action find
entity Q18220900
relation P17
type Q1048835
['Q18220900', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . resource:Q18220900 property:P17 ?x }
Member of the South Australian House of Assembly
action filter_type
action find
entity Member of the South Australian House of Assembly
relation country
type political territorial entity
['Member of the South Australian House of Assembly', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . resource:Member_of_the_South_Australian_House_of_Assembly property:country ?x }
[]
political territorial entity
Clarification for simple ques.
Q42973
SYSTEM
Did you mean architect ?
Q42973 Q18145518 Q18220900
(Q42973,P17,c(Q1048835)) (Q18145518,P17,c(Q1048835)) (Q18220900,P17,c(Q1048835))
[ANSWER]
['Q42973', 'P17', {'concept': 'Q1048835'}] ['Q18145518', 'P17', {'concept': 'Q1048835'}] ['Q18220900', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . resource:Q18220900 property:P17 ?x }
architect Member of the New Zealand House of Representatives Member of the South Australian House of Assembly
Did you mean architect ?
architect
['architect', 'country', {'concept': 'political territorial entity'}] ['Member of the New Zealand House of Representatives', 'country', {'concept': 'political territorial entity'}] ['Member of the South Australian House of Assembly', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . resource:Member_of_the_South_Australian_House_of_Assembly property:country ?x }
[]
Simple Question (Coreferenced)
USER
No, I meant Member of the South Australian House of Assembly. Could you tell me the answer for that?
(Q18220900,P17,c(Q1048835))
Q18220900
['Q18220900', 'P17', {'concept': 'Q1048835'}]
['Member of the South Australian House of Assembly', 'country', {'concept': 'political territorial entity'}]
[]
Q408
SYSTEM
Australia
Q408
(Q18220900,P17,c(Q1048835))
action filter_type
action find
entity Q18220900
relation P17
type Q1048835
Which political territory is that occupation present in
['Q18220900', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . resource:Q18220900 property:P17 ?x }
Australia
Which political territory is that occupation present in
Australia
action filter_type
action find
entity Member of the South Australian House of Assembly
relation country
type political territorial entity
['Member of the South Australian House of Assembly', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . resource:Member_of_the_South_Australian_House_of_Assembly property:country ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18220900
P361
Q11204
USER
What is Member of the South Australian House of Assembly a part of ?
(Q18220900,P361,c(Q11204))
action filter_type
action find
entity Q18220900
relation P361
type Q11204
['Q18220900', 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ?c WHERE { resource:Q18220900 property:P361 ?c . ?c rdf:type ontology:Q11204 }
Member of the South Australian House of Assembly
action filter_type
action find
entity Member of the South Australian House of Assembly
relation part of
type legislature
['Member of the South Australian House of Assembly', 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ?c WHERE { resource:Member_of_the_South_Australian_House_of_Assembly property:part_of ?c . ?c rdf:type ontology:legislature }
[]
legislature
Q7566117
SYSTEM
South Australian House of Assembly
Q7566117
(Q18220900,P361,c(Q11204))
action filter_type
action find
entity Q18220900
relation P361
type Q11204
Member of the [ANSWER] a part of is the [ANSWER]
['Q18220900', 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ?c WHERE { resource:Q18220900 property:P361 ?c . ?c rdf:type ontology:Q11204 }
South Australian House of Assembly
Member of the South Australian House of Assembly a part of is the South Australian House of Assembly
South Australian House of Assembly
action filter_type
action find
entity Member of the South Australian House of Assembly
relation part of
type legislature
['Member of the South Australian House of Assembly', 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ?c WHERE { resource:Member_of_the_South_Australian_House_of_Assembly property:part_of ?c . ?c rdf:type ontology:legislature }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7566117
P39
Q502895
USER
Who was responsible for occupying the position of that legislature ?
(c(Q502895),P39,Q7566117)
action filter_type
action find_reverse
entity Q7566117
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q7566117']
SELECT DISTINCT ?p WHERE { ?p property:P39 resource:Q7566117 . ?p rdf:type ontology:Q502895 }
South Australian House of Assembly
action filter_type
action find_reverse
entity South Australian House of Assembly
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'South Australian House of Assembly']
SELECT DISTINCT ?p WHERE { ?p property:position_held resource:South_Australian_House_of_Assembly . ?p rdf:type ontology:common_name }
[]
common name
Q21068947
SYSTEM
Benjamin Taylor
Q21068947
(c(Q502895),P39,Q7566117)
action filter_type
action find_reverse
entity Q7566117
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of that legislature
[{'concept': 'Q502895'}, 'P39', 'Q7566117']
SELECT DISTINCT ?p WHERE { ?p property:P39 resource:Q7566117 . ?p rdf:type ontology:Q502895 }
Benjamin Taylor
Benjamin Taylor was responsible for occupying the position of that legislature
Benjamin Taylor
action filter_type
action find_reverse
entity South Australian House of Assembly
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'South Australian House of Assembly']
SELECT DISTINCT ?p WHERE { ?p property:position_held resource:South_Australian_House_of_Assembly . ?p rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q21068947 Q326653
P106
Q12737077
USER
Is accountant the profession of that person ?
(Q21068947,P106,Q326653)
action is_in
entity Q326653
action find
entity Q21068947
relation P106
['Q21068947', 'P106', 'Q326653']
ASK WHERE { resource:Q21068947 property:P106 resource:Q326653 }
Benjamin Taylor accountant
action is_in
entity accountant
action find
entity Benjamin Taylor
relation occupation
['Benjamin Taylor', 'occupation', 'accountant']
ASK WHERE { resource:Benjamin_Taylor property:occupation resource:accountant }
[]
occupation
SYSTEM
YES
(Q21068947,P106,Q326653)
action is_in
entity Q326653
action find
entity Q21068947
relation P106
[ANSWER]
['Q21068947', 'P106', 'Q326653']
ASK WHERE { resource:Q21068947 property:P106 resource:Q326653 }
Yes
action is_in
entity accountant
action find
entity Benjamin Taylor
relation occupation
['Benjamin Taylor', 'occupation', 'accountant']
ASK WHERE { resource:Benjamin_Taylor property:occupation resource:accountant }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q49202
P276
Q15275719
USER
Which recurring event has its location as Greenwich ?
(c(Q15275719),P276,Q49202)
action filter_type
action find_reverse
entity Q49202
relation P276
type Q15275719
[{'concept': 'Q15275719'}, 'P276', 'Q49202']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q49202 . ?h rdf:type ontology:Q15275719 }
Greenwich
action filter_type
action find_reverse
entity Greenwich
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Greenwich']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Greenwich . ?h rdf:type ontology:recurring_event }
[]
recurring event
Q18346141
SYSTEM
Greenwich International Film Festival
Q18346141
(c(Q15275719),P276,Q49202)
action filter_type
action find_reverse
entity Q49202
relation P276
type Q15275719
[ANSWER] has its location as Greenwich
[{'concept': 'Q15275719'}, 'P276', 'Q49202']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q49202 . ?h rdf:type ontology:Q15275719 }
Greenwich International Film Festival
Greenwich International Film Festival has its location as Greenwich
Greenwich International Film Festival
action filter_type
action find_reverse
entity Greenwich
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'Greenwich']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Greenwich . ?h rdf:type ontology:recurring_event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q49202
P138
Q56061
USER
What is Greenwich named after ?
(Q49202,P138,c(Q56061))
action filter_type
action find
entity Q49202
relation P138
type Q56061
['Q49202', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q49202 property:P138 ?a }
Greenwich
action filter_type
action find
entity Greenwich
relation named after
type administrative territorial entity
['Greenwich', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Greenwich property:named_after ?a }
[]
administrative territorial entity
Q179385
SYSTEM
Greenwich
Q179385
(Q49202,P138,c(Q56061))
action filter_type
action find
entity Q49202
relation P138
type Q56061
[ANSWER] is named for [ANSWER]
['Q49202', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q49202 property:P138 ?a }
Greenwich
Greenwich is named for Greenwich
Greenwich
action filter_type
action find
entity Greenwich
relation named after
type administrative territorial entity
['Greenwich', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Greenwich property:named_after ?a }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1356478 Q21068947
P106
Q12737077
USER
Which occupations do Benjamin Taylor or Ernest Nègre do for a living ?
OR((Q21068947,P106,c(Q12737077)), (Q1356478,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21068947
relation P106
action find
entity Q1356478
relation P106
type Q12737077
{'OR': [['Q21068947', 'P106', {'concept': 'Q12737077'}], ['Q1356478', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q21068947 property:P106 ?v } UNION { resource:Q1356478 property:P106 ?v } } . ?v rdf:type ontology:Q12737077 }
Ernest Nègre Benjamin Taylor
action filter_type
action union
action find
entity Benjamin Taylor
relation occupation
action find
entity Ernest Nègre
relation occupation
type occupation
{'OR': [['Benjamin Taylor', 'occupation', {'concept': 'occupation'}], ['Ernest Nègre', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Benjamin_Taylor property:occupation ?v } UNION { resource:Ernest_Nègre property:occupation ?v } } . ?v rdf:type ontology:occupation }
[]
occupation
Q326653 Q14467526 Q1104153 Q1622272 Q36180
SYSTEM
accountant, linguist, canon, university teacher, writer
Q326653 Q14467526 Q1104153 Q1622272 Q36180
OR((Q21068947,P106,c(Q12737077)), (Q1356478,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21068947
relation P106
action find
entity Q1356478
relation P106
type Q12737077
[ANSWERS] Benjamin Taylor or Ernest Nègre do for a living
{'OR': [['Q21068947', 'P106', {'concept': 'Q12737077'}], ['Q1356478', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q21068947 property:P106 ?v } UNION { resource:Q1356478 property:P106 ?v } } . ?v rdf:type ontology:Q12737077 }
accountant linguist canon university teacher writer
Accountant, linguist, canon, university teacher and writer Benjamin Taylor or Ernest Nègre do for a living
accountant linguist canon university teacher writer
action filter_type
action union
action find
entity Benjamin Taylor
relation occupation
action find
entity Ernest Nègre
relation occupation
type occupation
{'OR': [['Benjamin Taylor', 'occupation', {'concept': 'occupation'}], ['Ernest Nègre', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Benjamin_Taylor property:occupation ?v } UNION { resource:Ernest_Nègre property:occupation ?v } } . ?v rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q14467526
P101
Q502895
USER
Which person has field of work as that occupation ?
(c(Q502895),P101,Q14467526)
action filter_type
action find_reverse
entity Q14467526
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q14467526']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P101 resource:Q14467526 }
linguist
action filter_type
action find_reverse
entity linguist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'linguist']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:field_of_work resource:linguist }
[]
common name
Clarification for simple ques.
Q326653
SYSTEM
Did you mean accountant ?
Q326653 Q14467526 Q1104153 Q1622272 Q36180
(c(Q502895),P101,Q326653) (c(Q502895),P101,Q14467526) (c(Q502895),P101,Q1104153) (c(Q502895),P101,Q1622272) (c(Q502895),P101,Q36180)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q326653'] [{'concept': 'Q502895'}, 'P101', 'Q14467526'] [{'concept': 'Q502895'}, 'P101', 'Q1104153'] [{'concept': 'Q502895'}, 'P101', 'Q1622272'] [{'concept': 'Q502895'}, 'P101', 'Q36180']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P101 resource:Q14467526 }
accountant linguist canon university teacher writer
Did you mean accountant ?
accountant
[{'concept': 'common name'}, 'field of work', 'accountant'] [{'concept': 'common name'}, 'field of work', 'linguist'] [{'concept': 'common name'}, 'field of work', 'canon'] [{'concept': 'common name'}, 'field of work', 'university teacher'] [{'concept': 'common name'}, 'field of work', 'writer']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:field_of_work resource:linguist }
[]
Simple Question (Coreferenced)
USER
No, I meant linguist. Could you tell me the answer for that?
(c(Q502895),P101,Q14467526)
Q14467526
[{'concept': 'Q502895'}, 'P101', 'Q14467526']
[{'concept': 'common name'}, 'field of work', 'linguist']
[]
Q327195
SYSTEM
Edgar de Wahl
Q327195
(c(Q502895),P101,Q14467526)
action filter_type
action find_reverse
entity Q14467526
relation P101
type Q502895
[ANSWER] has field of work as that occupation
[{'concept': 'Q502895'}, 'P101', 'Q14467526']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P101 resource:Q14467526 }
Edgar de Wahl
Edgar de Wahl has field of work as that occupation
Edgar de Wahl
action filter_type
action find_reverse
entity linguist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'linguist']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:field_of_work resource:linguist }
[]