Simple Question (Direct)
Simple Question
Q1859928
P106
Q151885
USER
What is the job of Sam J. Lundwall ?
(Q1859928,P106,c(Q151885))
action filter_type
action find
entity Q1859928
relation P106
type Q151885
['Q1859928', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?u WHERE { resource:Q1859928 property:P106 ?u . ?u rdf:type ontology:Q151885 }
Sam J. Lundwall
action filter_type
action find
entity Sam J. Lundwall
relation occupation
type concept
['Sam J. Lundwall', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?u WHERE { resource:Sam_J._Lundwall property:occupation ?u . ?u rdf:type ontology:concept }
[]
concept
Q482980
SYSTEM
author
Q482980
(Q1859928,P106,c(Q151885))
action filter_type
action find
entity Q1859928
relation P106
type Q151885
The job of Sam J. Lundwall is an [ANSWER]
['Q1859928', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?u WHERE { resource:Q1859928 property:P106 ?u . ?u rdf:type ontology:Q151885 }
author
The job of Sam J. Lundwall is an author
author
action filter_type
action find
entity Sam J. Lundwall
relation occupation
type concept
['Sam J. Lundwall', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?u WHERE { resource:Sam_J._Lundwall property:occupation ?u . ?u rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1859928
P27
Q15617994
USER
Which administrative territory is the native country of Sam J. Lundwall ?
(Q1859928,P27,c(Q15617994))
action filter_type
action find
entity Q1859928
relation P27
type Q15617994
['Q1859928', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q1859928 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Sam J. Lundwall
action filter_type
action find
entity Sam J. Lundwall
relation country of citizenship
type designation for an administrative territorial entity
['Sam J. Lundwall', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Sam_J._Lundwall property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q1859928,P27,c(Q15617994))
action filter_type
action find
entity Q1859928
relation P27
type Q15617994
[ANSWER] is the native country of Sam J. Lundwall
['Q1859928', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q1859928 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Sweden
Sweden is the native country of Sam J. Lundwall
Sweden
action filter_type
action find
entity Sam J. Lundwall
relation country of citizenship
type designation for an administrative territorial entity
['Sam J. Lundwall', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Sam_J._Lundwall property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q22683103
Q15617994
USER
And how about Loulou Robert?
(Q22683103,P27,c(Q15617994))
action filter_type
action find
entity Q22683103
relation P27
type Q15617994
['Q22683103', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q22683103 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Loulou Robert
action filter_type
action find
entity Loulou Robert
relation country of citizenship
type designation for an administrative territorial entity
['Loulou Robert', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Loulou_Robert property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q22683103,P27,c(Q15617994))
action filter_type
action find
entity Q22683103
relation P27
type Q15617994
[ANSWER]
['Q22683103', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q22683103 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
France
France
action filter_type
action find
entity Loulou Robert
relation country of citizenship
type designation for an administrative territorial entity
['Loulou Robert', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Loulou_Robert property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P636
Q151885 Q8386 Q79529
USER
Which concepts are the routes of administration of exactly 3 drugs and chemical substances ?
(c(Q8386)|c(Q79529),P636,c(Q151885))
action equal
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
value 3
[[{'concept': 'Q8386'}, {'concept': 'Q79529'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) ?g WHERE { { ?g rdf:type ontology:Q151885 . ?s rdf:type ontology:Q8386 . ?s property:P636 ?g } UNION { ?s property:P636 ?g . ?g rdf:type ontology:Q151885 . ?s rdf:type ontology:Q79529 } } GROUP BY ?g } . FILTER ( ?o = 3 ) }
action equal
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
value 3
[[{'concept': 'drug'}, {'concept': 'chemical substance'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) ?g WHERE { { ?g rdf:type ontology:concept . ?s rdf:type ontology:drug . ?s property:route_of_administration ?g } UNION { ?s property:route_of_administration ?g . ?g rdf:type ontology:concept . ?s rdf:type ontology:chemical_substance } } GROUP BY ?g } . FILTER ( ?o = 3 ) }
[]
concept drug chemical substance
Q1369403 Q16861468
SYSTEM
intravenous injection, intra-arterial infusion
Q1369403 Q16861468
(c(Q8386)|c(Q79529),P636,c(Q151885))
action equal
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
value 3
[ANSWERS] are the routes of administration of exactly 3 drugs and chemical substances
[[{'concept': 'Q8386'}, {'concept': 'Q79529'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) ?g WHERE { { ?g rdf:type ontology:Q151885 . ?s rdf:type ontology:Q8386 . ?s property:P636 ?g } UNION { ?s property:P636 ?g . ?g rdf:type ontology:Q151885 . ?s rdf:type ontology:Q79529 } } GROUP BY ?g } . FILTER ( ?o = 3 ) }
intravenous injection intra-arterial infusion
Intravenous injection and intra-arterial infusion are the routes of administration of exactly 3 drugs and chemical substances
intravenous injection intra-arterial infusion
action equal
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
value 3
[[{'concept': 'drug'}, {'concept': 'chemical substance'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) ?g WHERE { { ?g rdf:type ontology:concept . ?s rdf:type ontology:drug . ?s property:route_of_administration ?g } UNION { ?s property:route_of_administration ?g . ?g rdf:type ontology:concept . ?s rdf:type ontology:chemical_substance } } GROUP BY ?g } . FILTER ( ?o = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P551
Q502895
USER
Who reside at France ?
(c(Q502895),P551,Q142)
action filter_type
action find_reverse
entity Q142
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q142']
SELECT DISTINCT ?h WHERE { ?h property:P551 resource:Q142 . ?h rdf:type ontology:Q502895 }
France
action filter_type
action find_reverse
entity France
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'France']
SELECT DISTINCT ?h WHERE { ?h property:residence resource:France . ?h rdf:type ontology:common_name }
[]
common name
Q42831 Q14943164 Q326449
SYSTEM
Ivan Turgenev, Alain Schneider, Abram Petrovich Gannibal
Q6072265 Q17141465 Q34248 Q7925920 Q1287583 Q23726522 Q5612768 Q42831 Q360312 Q2907955 Q1010504 Q2895607 Q16663593 Q18278048 Q20872764 Q20721 Q20203092 Q7348968 Q3131277 Q333563 Q19845625 Q14943164 Q2580510 Q22136999 Q26922710 Q18590538 Q17071396 Q18695634 Q7915490 Q557546 Q245363 Q2405968 Q2254007 Q683660 Q4768865 Q23843063 Q2947608 Q25865472 Q93166 Q102804 Q23888162 Q23888163 Q15429884 Q17486002 Q2646836 Q19629253 Q5671358 Q8006910 Q12888221 Q20730830 Q465681 Q1399562 Q326449 Q2848090 Q16533765 Q2866245 Q3553283 Q3186257 Q16734991 Q5398352 Q2877725 Q3218950 Q3275875 Q3436933 Q729117 Q23866372
(c(Q502895),P551,Q142)
action filter_type
action find_reverse
entity Q142
relation P551
type Q502895
[ANSWERS] reside at France
[{'concept': 'Q502895'}, 'P551', 'Q142']
SELECT DISTINCT ?h WHERE { ?h property:P551 resource:Q142 . ?h rdf:type ontology:Q502895 }
Pere Puig Subinyà Altantuya Shaaribuu Camila Giorgi Victor Garcia Momčilo Đujić Philippe Burin des Roziers Grégoire Burquier Ivan Turgenev Antoine-Augustin Parmentier Bobby Holcomb Gillian Hills Ben Zimet Marvin Jefferson Gabriel Spat Mark Moogalian Luigi Cherubini Victoria Muntean Robert Pope Henri Hiro Niccolò dell'Abbate Andra Waagmeester Alain Schneider Paul Haviland Nabil Canaan Aline Gohard-Radenkovic Esteban Pérez Pérez Mathias Bourgue Étienne Cornevin Varaz Samuelian Tran Anh Hung Zygmunt Mineyko Gianni Mina Avner W. Less Johann Gaudenz von Salis-Seewis Anne Villiers, Countess of Morton Leonardo D'Antoni Chahla Chafiq-Beski Michaël Magne Milan Kundera Henri Moissan Kim Tran-Nhut Thanh-Van Tran-Nhut Mary Elizabeth Hawker HJ Lim Alice Anderson Jacques Dessalines Carles Reig i Morell William Close Bruno Saura Marc Boudin Sophie, Countess of Ségur Emil Grunzweig Abram Petrovich Gannibal André Larivière Bruno Duthoit As Thiam Vahé Katcha José Cuneo Mark Rappaport Eslanda Goode Robeson Baba de Faucigny-Lucinge Laurence Vidal Adeline Dudlay Roberto Maria Grassi Edmund White Delphine Lehericey
Ivan Turgenev, Alain Schneider and Abram Petrovich Gannibal reside at France
Ivan Turgenev Alain Schneider Abram Petrovich Gannibal
action filter_type
action find_reverse
entity France
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'France']
SELECT DISTINCT ?h WHERE { ?h property:residence resource:France . ?h rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q326449
P19
Q15617994
USER
Where was that person born ?
(Q326449,P19,c(Q15617994))
action filter_type
action find
entity Q326449
relation P19
type Q15617994
['Q326449', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q326449 property:P19 ?i }
Abram Petrovich Gannibal
action filter_type
action find
entity Abram Petrovich Gannibal
relation place of birth
type designation for an administrative territorial entity
['Abram Petrovich Gannibal', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Abram_Petrovich_Gannibal property:place_of_birth ?i }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q42831
SYSTEM
Did you mean Ivan Turgenev ?
Q42831 Q14943164 Q326449
(Q42831,P19,c(Q15617994)) (Q14943164,P19,c(Q15617994)) (Q326449,P19,c(Q15617994))
[ANSWER]
['Q42831', 'P19', {'concept': 'Q15617994'}] ['Q14943164', 'P19', {'concept': 'Q15617994'}] ['Q326449', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q326449 property:P19 ?i }
Ivan Turgenev Alain Schneider Abram Petrovich Gannibal
Did you mean Ivan Turgenev ?
Ivan Turgenev
['Ivan Turgenev', 'place of birth', {'concept': 'designation for an administrative territorial entity'}] ['Alain Schneider', 'place of birth', {'concept': 'designation for an administrative territorial entity'}] ['Abram Petrovich Gannibal', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Abram_Petrovich_Gannibal property:place_of_birth ?i }
[]
Simple Question (Coreferenced)
USER
No, I meant Abram Petrovich Gannibal. Could you tell me the answer for that?
(Q326449,P19,c(Q15617994))
Q326449
['Q326449', 'P19', {'concept': 'Q15617994'}]
['Abram Petrovich Gannibal', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
[]
Q986
SYSTEM
Eritrea
Q986
(Q326449,P19,c(Q15617994))
action filter_type
action find
entity Q326449
relation P19
type Q15617994
That person was born in [ANSWER]
['Q326449', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q326449 property:P19 ?i }
Eritrea
That person was born in Eritrea
Eritrea
action filter_type
action find
entity Abram Petrovich Gannibal
relation place of birth
type designation for an administrative territorial entity
['Abram Petrovich Gannibal', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Abram_Petrovich_Gannibal property:place_of_birth ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q986
P19
Q502895
USER
Which people have birthplace at that administrative territory ?
(c(Q502895),P19,Q986)
action filter_type
action find_reverse
entity Q986
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q986']
SELECT DISTINCT ?a WHERE { ?a property:P19 resource:Q986 . ?a rdf:type ontology:Q502895 }
Eritrea
action filter_type
action find_reverse
entity Eritrea
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Eritrea']
SELECT DISTINCT ?a WHERE { ?a property:place_of_birth resource:Eritrea . ?a rdf:type ontology:common_name }
[]
common name
Q326449 Q5389894 Q1403649
SYSTEM
Abram Petrovich Gannibal, Ermias Wolday, Felix Mary Ghebreamlak
Q5364963 Q4891772 Q326449 Q17484511 Q6987137 Q18683773 Q5389894 Q4665659 Q1403649 Q7004535 Q1680959 Q7705850 Q2583279 Q18785224 Q18687882 Q6177067
(c(Q502895),P19,Q986)
action filter_type
action find_reverse
entity Q986
relation P19
type Q502895
[ANSWERS] have birthplace at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q986']
SELECT DISTINCT ?a WHERE { ?a property:P19 resource:Q986 . ?a rdf:type ontology:Q502895 }
Ellen Nyman Berhan Ahmed Abram Petrovich Gannibal Haile Goitom Negash Teklit Tekie Abraha Ermias Wolday Abdul Rahman al-Amoudi Felix Mary Ghebreamlak Nevi Ghebremeskez Paulos Tesfagiorgis Testfaldet Goitom Ibrahim Sultan Ali Khaled Idris Bahray Omar Ahmed Hussein Jemal Abdu
Abram Petrovich Gannibal, Ermias Wolday and Felix Mary Ghebreamlak have birthplace at that administrative territory
Abram Petrovich Gannibal Ermias Wolday Felix Mary Ghebreamlak
action filter_type
action find_reverse
entity Eritrea
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Eritrea']
SELECT DISTINCT ?a WHERE { ?a property:place_of_birth resource:Eritrea . ?a rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q26299860
P725
Q502895 Q386724
USER
Which works have been dubbed by approximately the same number of people as Hércules y el primer médico del mundo ?
(c(Q386724),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q386724
type Q502895
action count
action filter_type
action find
entity Q26299860
relation P725
type Q386724
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?l ) WHERE { ?j rdf:type ontology:Q386724 . ?b rdf:type ontology:Q502895 . ?j property:P725 ?b } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Q26299860 property:P725 ?h . ?h rdf:type ontology:Q386724 } } . FILTER ( ?l = ?x ) }
Hércules y el primer médico del mundo
action approx
action find_tuple_counts
relation voice actor
type work
type common name
action count
action filter_type
action find
entity Hércules y el primer médico del mundo
relation voice actor
type work
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?l ) WHERE { ?j rdf:type ontology:work . ?b rdf:type ontology:common_name . ?j property:voice_actor ?b } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Hércules_y_el_primer_médico_del_mundo property:voice_actor ?h . ?h rdf:type ontology:work } } . FILTER ( ?l = ?x ) }
[]
common name work
Q26712000 Q26301623 Q23894983
SYSTEM
Hércules y los Tecno-Griegos, Hércules y el primer día de escuela, Iron Man 2
Q26987217 Q26701981 Q23752771 Q27627540 Q26712000 Q26390366 Q26715049 Q26299860 Q26457246 Q26301623 Q26829863 Q23894983
(c(Q386724),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q386724
type Q502895
action count
action filter_type
action find
entity Q26299860
relation P725
type Q386724
[ANSWERS] have been dubbed by approximately the same number of people as Hércules y el primer médico del mundo
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?l ) WHERE { ?j rdf:type ontology:Q386724 . ?b rdf:type ontology:Q502895 . ?j property:P725 ?b } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Q26299860 property:P725 ?h . ?h rdf:type ontology:Q386724 } } . FILTER ( ?l = ?x ) }
Hércules y la visita de Zeus Hércules y el grifo Iron Man Doctor Strange (Doctor Extraño) Hércules y los Tecno-Griegos Hércules y el rey de Tesalia Peter y el dragón Hércules y el primer médico del mundo Hércules y el arma secreta Hércules y el primer día de escuela Angry Birds: La película Iron Man 2
Hércules y los Tecno-Griegos, Hércules y el primer día de escuela and Iron Man 2 have been dubbed by approximately the same number of people as Hércules y el primer médico del mundo
Hércules y los Tecno-Griegos Hércules y el primer día de escuela Iron Man 2
action approx
action find_tuple_counts
relation voice actor
type work
type common name
action count
action filter_type
action find
entity Hércules y el primer médico del mundo
relation voice actor
type work
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?l ) WHERE { ?j rdf:type ontology:work . ?b rdf:type ontology:common_name . ?j property:voice_actor ?b } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Hércules_y_el_primer_médico_del_mundo property:voice_actor ?h . ?h rdf:type ontology:work } } . FILTER ( ?l = ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q13516675
P725
Q502895 Q386724
USER
And what about Sakura Trick?
(c(Q386724),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q386724
type Q502895
action count
action filter_type
action find
entity Q13516675
relation P725
type Q386724
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?g ) WHERE { ?b rdf:type ontology:Q386724 . ?z rdf:type ontology:Q502895 . ?b property:P725 ?z } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:Q13516675 property:P725 ?c . ?c rdf:type ontology:Q386724 } } . FILTER ( ?g = ?d ) }
Sakura Trick
action approx
action find_tuple_counts
relation voice actor
type work
type common name
action count
action filter_type
action find
entity Sakura Trick
relation voice actor
type work
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?g ) WHERE { ?b rdf:type ontology:work . ?z rdf:type ontology:common_name . ?b property:voice_actor ?z } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:Sakura_Trick property:voice_actor ?c . ?c rdf:type ontology:work } } . FILTER ( ?g = ?d ) }
[]
common name work
Q13516675 Q27627540 Q26829863
SYSTEM
Sakura Trick, Doctor Strange (Doctor Extraño), Angry Birds: La película
Q27627540 Q24175397 Q26715049 Q25858085 Q13516675 Q26829863
(c(Q386724),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q386724
type Q502895
action count
action filter_type
action find
entity Q13516675
relation P725
type Q386724
[ANSWERS]
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?g ) WHERE { ?b rdf:type ontology:Q386724 . ?z rdf:type ontology:Q502895 . ?b property:P725 ?z } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:Q13516675 property:P725 ?c . ?c rdf:type ontology:Q386724 } } . FILTER ( ?g = ?d ) }
Doctor Strange (Doctor Extraño) Capitán América: El primer vengador Peter y el dragón Alicia a través del espejo Sakura Trick Angry Birds: La película
Sakura Trick Doctor Strange (Doctor Extraño) Angry Birds: La película
action approx
action find_tuple_counts
relation voice actor
type work
type common name
action count
action filter_type
action find
entity Sakura Trick
relation voice actor
type work
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?g ) WHERE { ?b rdf:type ontology:work . ?z rdf:type ontology:common_name . ?b property:voice_actor ?z } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:Sakura_Trick property:voice_actor ?c . ?c rdf:type ontology:work } } . FILTER ( ?g = ?d ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18966605 Q326449
P276 P551
Q56061
USER
Which administrative territories did Abram Petrovich Gannibal live or can Brandemolen be found ?
OR((Q326449,P551,c(Q56061)), (Q18966605,P276,c(Q56061)))
action filter_type
action union
action find
entity Q326449
relation P551
action find
entity Q18966605
relation P276
type Q56061
{'OR': [['Q326449', 'P551', {'concept': 'Q56061'}], ['Q18966605', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q326449 property:P551 ?h } UNION { resource:Q18966605 property:P276 ?h } } . ?h rdf:type ontology:Q56061 }
Brandemolen Abram Petrovich Gannibal
action filter_type
action union
action find
entity Abram Petrovich Gannibal
relation residence
action find
entity Brandemolen
relation location
type administrative territorial entity
{'OR': [['Abram Petrovich Gannibal', 'residence', {'concept': 'administrative territorial entity'}], ['Brandemolen', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Abram_Petrovich_Gannibal property:residence ?h } UNION { resource:Brandemolen property:location ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q631873 Q976 Q168782 Q90 Q102365 Q6576 Q1770 Q900
SYSTEM
Arcen, Tomsk, Tobolsk, Paris, Pärnu, Irkutsk, Tallinn, Kazan
Q631873 Q976 Q168782 Q90 Q102365 Q6576 Q1770 Q900
OR((Q326449,P551,c(Q56061)), (Q18966605,P276,c(Q56061)))
action filter_type
action union
action find
entity Q326449
relation P551
action find
entity Q18966605
relation P276
type Q56061
Abram Petrovich Gannibal lived in [ANSWERS]
{'OR': [['Q326449', 'P551', {'concept': 'Q56061'}], ['Q18966605', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q326449 property:P551 ?h } UNION { resource:Q18966605 property:P276 ?h } } . ?h rdf:type ontology:Q56061 }
Arcen Tomsk Tobolsk Paris Pärnu Irkutsk Tallinn Kazan
Abram Petrovich Gannibal lived in Arcen, Tomsk, Tobolsk, Paris, Pärnu, Irkutsk, Tallinn and Kazan
Arcen Tomsk Tobolsk Paris Pärnu Irkutsk Tallinn Kazan
action filter_type
action union
action find
entity Abram Petrovich Gannibal
relation residence
action find
entity Brandemolen
relation location
type administrative territorial entity
{'OR': [['Abram Petrovich Gannibal', 'residence', {'concept': 'administrative territorial entity'}], ['Brandemolen', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Abram_Petrovich_Gannibal property:residence ?h } UNION { resource:Brandemolen property:location ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]