Simple Question (Direct)
Simple Question
Q721614
P19
Q56061
USER
Which administrative territory is the birthplace of George Lamsa ?
(Q721614,P19,c(Q56061))
action filter_type
action find
entity Q721614
relation P19
type Q56061
['Q721614', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q721614 property:P19 ?q . ?q rdf:type ontology:Q56061 }
George Lamsa
action filter_type
action find
entity George Lamsa
relation place of birth
type administrative territorial entity
['George Lamsa', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:George_Lamsa property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q6368118
SYSTEM
Karakilise, Şemdinli
Q6368118
(Q721614,P19,c(Q56061))
action filter_type
action find
entity Q721614
relation P19
type Q56061
[ANSWER] is the birthplace of George Lamsa
['Q721614', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q721614 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Karakilise, Şemdinli
Karakilise, Şemdinli is the birthplace of George Lamsa
Karakilise, Şemdinli
action filter_type
action find
entity George Lamsa
relation place of birth
type administrative territorial entity
['George Lamsa', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:George_Lamsa property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q721614
P21
Q290
USER
What is the sex of George Lamsa ?
(Q721614,P21,c(Q290))
action filter_type
action find
entity Q721614
relation P21
type Q290
['Q721614', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q721614 property:P21 ?r . ?r rdf:type ontology:Q290 }
George Lamsa
action filter_type
action find
entity George Lamsa
relation gender
type sex
['George Lamsa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:George_Lamsa property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q721614,P21,c(Q290))
action filter_type
action find
entity Q721614
relation P21
type Q290
The sex of George Lamsa is the [ANSWER]
['Q721614', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q721614 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
The sex of George Lamsa is the male
male
action filter_type
action find
entity George Lamsa
relation gender
type sex
['George Lamsa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:George_Lamsa property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P106
Q502895
USER
Who has a job as that sex ?
(c(Q502895),P106,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q6581097']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P106 resource:Q6581097 }
male
action filter_type
action find_reverse
entity male
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'male']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:occupation resource:male }
[]
common name
Q24877298
SYSTEM
Antonín Straka
Q24877298
(c(Q502895),P106,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
[ANSWER] has a job as that sex
[{'concept': 'Q502895'}, 'P106', 'Q6581097']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P106 resource:Q6581097 }
Antonín Straka
Antonín Straka has a job as that sex
Antonín Straka
action filter_type
action find_reverse
entity male
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'male']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:occupation resource:male }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q3620070 Q721614
P106
Q12737077
USER
Which occupations do George Lamsa but not Antonio Prete do for a living ?
AND((Q721614,P106,c(Q12737077)), NOT((Q3620070,P106,c(Q12737077))))
action filter_type
action difference
action find
entity Q721614
relation P106
action find
entity Q3620070
relation P106
type Q12737077
{'AND': [['Q721614', 'P106', {'concept': 'Q12737077'}], {'NOT': [['Q3620070', 'P106', {'concept': 'Q12737077'}]]}]}
SELECT DISTINCT ?k WHERE { resource:Q721614 property:P106 ?k . FILTER NOT EXISTS { resource:Q3620070 property:P106 ?k } . ?k rdf:type ontology:Q12737077 }
Antonio Prete George Lamsa
action filter_type
action difference
action find
entity George Lamsa
relation occupation
action find
entity Antonio Prete
relation occupation
type occupation
{'AND': [['George Lamsa', 'occupation', {'concept': 'occupation'}], {'NOT': [['Antonio Prete', 'occupation', {'concept': 'occupation'}]]}]}
SELECT DISTINCT ?k WHERE { resource:George_Lamsa property:occupation ?k . FILTER NOT EXISTS { resource:Antonio_Prete property:occupation ?k } . ?k rdf:type ontology:occupation }
[]
occupation
Q333634 Q1234713
SYSTEM
translator, theologian
Q333634 Q1234713
AND((Q721614,P106,c(Q12737077)), NOT((Q3620070,P106,c(Q12737077))))
action filter_type
action difference
action find
entity Q721614
relation P106
action find
entity Q3620070
relation P106
type Q12737077
George Lamsa but not Antonio Prete do for a living a [ANSWERS]
{'AND': [['Q721614', 'P106', {'concept': 'Q12737077'}], {'NOT': [['Q3620070', 'P106', {'concept': 'Q12737077'}]]}]}
SELECT DISTINCT ?k WHERE { resource:Q721614 property:P106 ?k . FILTER NOT EXISTS { resource:Q3620070 property:P106 ?k } . ?k rdf:type ontology:Q12737077 }
translator theologian
George Lamsa but not Antonio Prete do for a living a translator and theologian
translator theologian
action filter_type
action difference
action find
entity George Lamsa
relation occupation
action find
entity Antonio Prete
relation occupation
type occupation
{'AND': [['George Lamsa', 'occupation', {'concept': 'occupation'}], {'NOT': [['Antonio Prete', 'occupation', {'concept': 'occupation'}]]}]}
SELECT DISTINCT ?k WHERE { resource:George_Lamsa property:occupation ?k . FILTER NOT EXISTS { resource:Antonio_Prete property:occupation ?k } . ?k rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1611368
P106
Q502895
USER
Do Hermann Hakel have a job as those occupations ?
(Q1611368,P106,Q333634) (Q1611368,P106,Q1234713)
action is_in
entity prev_answer
action find
entity Q1611368
relation P106
['Q1611368', 'P106', 'Q333634'] ['Q1611368', 'P106', 'Q1234713']
ASK WHERE { VALUES ( ?u ) { ( resource:Q333634 ) ( resource:Q1234713 ) } . resource:Q1611368 property:P106 ?u }
Hermann Hakel
action is_in
entity prev_answer
action find
entity Hermann Hakel
relation occupation
['Hermann Hakel', 'occupation', 'translator'] ['Hermann Hakel', 'occupation', 'theologian']
ASK WHERE { VALUES ( ?u ) { ( resource:translator ) ( resource:theologian ) } . resource:Hermann_Hakel property:occupation ?u }
[]
common name
SYSTEM
NO
(Q1611368,P106,Q333634) (Q1611368,P106,Q1234713)
action is_in
entity prev_answer
action find
entity Q1611368
relation P106
[ANSWER]
['Q1611368', 'P106', 'Q333634'] ['Q1611368', 'P106', 'Q1234713']
ASK WHERE { VALUES ( ?u ) { ( resource:Q333634 ) ( resource:Q1234713 ) } . resource:Q1611368 property:P106 ?u }
No
action is_in
entity prev_answer
action find
entity Hermann Hakel
relation occupation
['Hermann Hakel', 'occupation', 'translator'] ['Hermann Hakel', 'occupation', 'theologian']
ASK WHERE { VALUES ( ?u ) { ( resource:translator ) ( resource:theologian ) } . resource:Hermann_Hakel property:occupation ?u }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q24877298 Q7262009 Q7106698
P19
Q486972
USER
Was Antonín Straka born at Pustków, Opole Voivodeship and Osieczek, Inowrocław County ?
(Q24877298,P19,Q7262009) (Q24877298,P19,Q7106698)
action is_in
entity Q24877298
action intersection
action find_reverse
entity Q7262009
relation P19
action find_reverse
entity Q7106698
relation P19
['Q24877298', 'P19', 'Q7262009'] ['Q24877298', 'P19', 'Q7106698']
ASK WHERE { resource:Q24877298 property:P19 resource:Q7262009 . resource:Q24877298 property:P19 resource:Q7106698 }
Antonín Straka Pustków, Opole Voivodeship Osieczek, Inowrocław County
action is_in
entity Antonín Straka
action intersection
action find_reverse
entity Pustków, Opole Voivodeship
relation place of birth
action find_reverse
entity Osieczek, Inowrocław County
relation place of birth
['Antonín Straka', 'place of birth', 'Pustków, Opole Voivodeship'] ['Antonín Straka', 'place of birth', 'Osieczek, Inowrocław County']
ASK WHERE { resource:Antonín_Straka property:place_of_birth resource:Pustków,_Opole_Voivodeship . resource:Antonín_Straka property:place_of_birth resource:Osieczek,_Inowrocław_County }
[]
human settlement
SYSTEM
NO
(Q24877298,P19,Q7262009) (Q24877298,P19,Q7106698)
action is_in
entity Q24877298
action intersection
action find_reverse
entity Q7262009
relation P19
action find_reverse
entity Q7106698
relation P19
[ANSWER]
['Q24877298', 'P19', 'Q7262009'] ['Q24877298', 'P19', 'Q7106698']
ASK WHERE { resource:Q24877298 property:P19 resource:Q7262009 . resource:Q24877298 property:P19 resource:Q7106698 }
No
action is_in
entity Antonín Straka
action intersection
action find_reverse
entity Pustków, Opole Voivodeship
relation place of birth
action find_reverse
entity Osieczek, Inowrocław County
relation place of birth
['Antonín Straka', 'place of birth', 'Pustków, Opole Voivodeship'] ['Antonín Straka', 'place of birth', 'Osieczek, Inowrocław County']
ASK WHERE { resource:Antonín_Straka property:place_of_birth resource:Pustków,_Opole_Voivodeship . resource:Antonín_Straka property:place_of_birth resource:Osieczek,_Inowrocław_County }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3081900
Q486972
USER
And how about Francisco Javier Mayorga Castañeda?
(Q3081900,P19,c(Q486972))
action filter_type
action find
entity Q3081900
relation P19
type Q486972
['Q3081900', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { resource:Q3081900 property:P19 ?z . ?z rdf:type ontology:Q486972 }
Francisco Javier Mayorga Castañeda
action filter_type
action find
entity Francisco Javier Mayorga Castañeda
relation place of birth
type human settlement
['Francisco Javier Mayorga Castañeda', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { resource:Francisco_Javier_Mayorga_Castañeda property:place_of_birth ?z . ?z rdf:type ontology:human_settlement }
[]
human settlement
Q9022
SYSTEM
Guadalajara
Q9022
(Q3081900,P19,c(Q486972))
action filter_type
action find
entity Q3081900
relation P19
type Q486972
[ANSWER]
['Q3081900', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { resource:Q3081900 property:P19 ?z . ?z rdf:type ontology:Q486972 }
Guadalajara
Guadalajara
action filter_type
action find
entity Francisco Javier Mayorga Castañeda
relation place of birth
type human settlement
['Francisco Javier Mayorga Castañeda', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { resource:Francisco_Javier_Mayorga_Castañeda property:place_of_birth ?z . ?z rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q486972 Q13220204
USER
Which administrative country subdivisions are sister town of exactly 1 human settlement ?
(c(Q13220204),P190,c(Q486972))
action equal
action find_tuple_counts
relation P190
type Q13220204
type Q486972
value 1
[{'concept': 'Q13220204'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?f ) WHERE { ?d property:P190 ?r . ?d rdf:type ontology:Q13220204 . ?r rdf:type ontology:Q486972 } GROUP BY ?d } . FILTER ( ?f = 1 ) }
action equal
action find_tuple_counts
relation sister city
type second-level administrative country subdivision
type human settlement
value 1
[{'concept': 'second-level administrative country subdivision'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?f ) WHERE { ?d property:sister_city ?r . ?d rdf:type ontology:second-level_administrative_country_subdivision . ?r rdf:type ontology:human_settlement } GROUP BY ?d } . FILTER ( ?f = 1 ) }
[]
human settlement second-level administrative country subdivision
Q9772 Q101918 Q1435
SYSTEM
Meerssen, Apeldoorn, Zagreb
Q67348 Q729447 Q161144 Q69203 Q192606 Q7903 Q147739 Q5420 Q64077 Q9772 Q9777 Q68986 Q450625 Q48278 Q156719 Q156711 Q157440 Q208499 Q51111 Q189419 Q744247 Q69819 Q66132 Q66433 Q648489 Q1442335 Q156724 Q951897 Q538953 Q101918 Q64865 Q157055 Q157053 Q2933 Q65512 Q1435 Q67705 Q9932 Q43048 Q750594 Q66633
(c(Q13220204),P190,c(Q486972))
action equal
action find_tuple_counts
relation P190
type Q13220204
type Q486972
value 1
[ANSWERS] are sister town of exactly 1 human settlement
[{'concept': 'Q13220204'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?f ) WHERE { ?d property:P190 ?r . ?d rdf:type ontology:Q13220204 . ?r rdf:type ontology:Q486972 } GROUP BY ?d } . FILTER ( ?f = 1 ) }
Gansingen Dobele Alchevsk Erlenbach Leskovac Casablanca Izmail Varaždin Wil Meerssen Venlo St. Moritz Alytus Antioquia - Medellín Kamianske Uzhhorod Truskavets Uman Pereira Zemun Saldus Dürrenroth Erlenbach im Simmental Eiken Loznica Manzanares Kremenchuk Chiquinquirá La Vega Apeldoorn Bischofszell Cherkasy Chernihiv Asunción Oberembrach Zagreb Schmitten Heiloo Rhodes Guarda Kilchberg
Meerssen, Apeldoorn and Zagreb are sister town of exactly 1 human settlement
Meerssen Apeldoorn Zagreb
action equal
action find_tuple_counts
relation sister city
type second-level administrative country subdivision
type human settlement
value 1
[{'concept': 'second-level administrative country subdivision'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?r ) AS ?f ) WHERE { ?d property:sister_city ?r . ?d rdf:type ontology:second-level_administrative_country_subdivision . ?r rdf:type ontology:human_settlement } GROUP BY ?d } . FILTER ( ?f = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17917664 Q721614
P106
Q151885
USER
Which concepts are the professions of George Lamsa or László Barsi ?
OR((Q721614,P106,c(Q151885)), (Q17917664,P106,c(Q151885)))
action filter_type
action union
action find
entity Q721614
relation P106
action find
entity Q17917664
relation P106
type Q151885
{'OR': [['Q721614', 'P106', {'concept': 'Q151885'}], ['Q17917664', 'P106', {'concept': 'Q151885'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q721614 property:P106 ?z } UNION { resource:Q17917664 property:P106 ?z } } . ?z rdf:type ontology:Q151885 }
László Barsi George Lamsa
action filter_type
action union
action find
entity George Lamsa
relation occupation
action find
entity László Barsi
relation occupation
type concept
{'OR': [['George Lamsa', 'occupation', {'concept': 'concept'}], ['László Barsi', 'occupation', {'concept': 'concept'}]]}
SELECT DISTINCT ?z WHERE { { { resource:George_Lamsa property:occupation ?z } UNION { resource:László_Barsi property:occupation ?z } } . ?z rdf:type ontology:concept }
[]
concept
Q11513337 Q482980 Q24262584
SYSTEM
athletics competitor, author, bible translator
Q11513337 Q482980 Q24262584
OR((Q721614,P106,c(Q151885)), (Q17917664,P106,c(Q151885)))
action filter_type
action union
action find
entity Q721614
relation P106
action find
entity Q17917664
relation P106
type Q151885
The [ANSWERS] are the professions of George Lamsa or László Barsi
{'OR': [['Q721614', 'P106', {'concept': 'Q151885'}], ['Q17917664', 'P106', {'concept': 'Q151885'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q721614 property:P106 ?z } UNION { resource:Q17917664 property:P106 ?z } } . ?z rdf:type ontology:Q151885 }
athletics competitor author bible translator
The athletics competitor, author and bible translator are the professions of George Lamsa or László Barsi
athletics competitor author bible translator
action filter_type
action union
action find
entity George Lamsa
relation occupation
action find
entity László Barsi
relation occupation
type concept
{'OR': [['George Lamsa', 'occupation', {'concept': 'concept'}], ['László Barsi', 'occupation', {'concept': 'concept'}]]}
SELECT DISTINCT ?z WHERE { { { resource:George_Lamsa property:occupation ?z } UNION { resource:László_Barsi property:occupation ?z } } . ?z rdf:type ontology:concept }
[]
Clarification
Simple Question|Single Entity|Indirect
Q482980
P39
Q502895
USER
Who was responsible for occupying the position of that concept ?
(c(Q502895),P39,Q482980)
action filter_type
action find_reverse
entity Q482980
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q482980']
SELECT DISTINCT ?p WHERE { ?p property:P39 resource:Q482980 . ?p rdf:type ontology:Q502895 }
author
action filter_type
action find_reverse
entity author
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'author']
SELECT DISTINCT ?p WHERE { ?p property:position_held resource:author . ?p rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q24262584
SYSTEM
Did you mean bible translator ?
Q11513337 Q482980 Q24262584
(c(Q502895),P39,Q11513337) (c(Q502895),P39,Q482980) (c(Q502895),P39,Q24262584)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q11513337'] [{'concept': 'Q502895'}, 'P39', 'Q482980'] [{'concept': 'Q502895'}, 'P39', 'Q24262584']
SELECT DISTINCT ?p WHERE { ?p property:P39 resource:Q482980 . ?p rdf:type ontology:Q502895 }
athletics competitor author bible translator
Did you mean bible translator ?
bible translator
[{'concept': 'common name'}, 'position held', 'athletics competitor'] [{'concept': 'common name'}, 'position held', 'author'] [{'concept': 'common name'}, 'position held', 'bible translator']
SELECT DISTINCT ?p WHERE { ?p property:position_held resource:author . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant author. Could you tell me the answer for that?
(c(Q502895),P39,Q482980)
Q482980
[{'concept': 'Q502895'}, 'P39', 'Q482980']
[{'concept': 'common name'}, 'position held', 'author']
[]
Q6245628
SYSTEM
John Lyon-Dalberg-Acton, 5th Baron Acton
Q6245628
(c(Q502895),P39,Q482980)
action filter_type
action find_reverse
entity Q482980
relation P39
type Q502895
And [ANSWER] was responsible for occupying the position of that concept
[{'concept': 'Q502895'}, 'P39', 'Q482980']
SELECT DISTINCT ?p WHERE { ?p property:P39 resource:Q482980 . ?p rdf:type ontology:Q502895 }
John Lyon-Dalberg-Acton, 5th Baron Acton
And John Lyon-Dalberg-Acton, 5th Baron Acton was responsible for occupying the position of that concept
John Lyon-Dalberg-Acton, 5th Baron Acton
action filter_type
action find_reverse
entity author
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'author']
SELECT DISTINCT ?p WHERE { ?p property:position_held resource:author . ?p rdf:type ontology:common_name }
[]