Simple Question (Direct)
Simple Question
Q463539
P21
Q290
USER
Which sex does Beatriz Merino have ?
(Q463539,P21,c(Q290))
action filter_type
action find
entity Q463539
relation P21
type Q290
['Q463539', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q463539 property:P21 ?t . ?t rdf:type ontology:Q290 }
Beatriz Merino
action filter_type
action find
entity Beatriz Merino
relation gender
type sex
['Beatriz Merino', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Beatriz_Merino property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q463539,P21,c(Q290))
action filter_type
action find
entity Q463539
relation P21
type Q290
Beatriz Merino has a [ANSWER]
['Q463539', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q463539 property:P21 ?t . ?t rdf:type ontology:Q290 }
female
Beatriz Merino has a female
female
action filter_type
action find
entity Beatriz Merino
relation gender
type sex
['Beatriz Merino', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Beatriz_Merino property:gender ?t . ?t rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q463539
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q6581072,P102,c(Q7210356))
action filter_type
action find
entity Q463539
relation P102
type Q7210356
['Q6581072', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q463539 property:P102 ?c . ?c rdf:type ontology:Q7210356 }
Beatriz Merino
action filter_type
action find
entity Beatriz Merino
relation member of political party
type political organization
['female', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:Beatriz_Merino property:member_of_political_party ?c . ?c rdf:type ontology:political_organization }
[]
political organization
Q3040348
SYSTEM
Democratic Front
Q3040348
(Q6581072,P102,c(Q7210356))
action filter_type
action find
entity Q463539
relation P102
type Q7210356
The [ANSWER] is that person a member of
['Q6581072', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q463539 property:P102 ?c . ?c rdf:type ontology:Q7210356 }
Democratic Front
The Democratic Front is that person a member of
Democratic Front
action filter_type
action find
entity Beatriz Merino
relation member of political party
type political organization
['female', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:Beatriz_Merino property:member_of_political_party ?c . ?c rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1534851 Q463539
P27
Q15617994
USER
Which administrative territories do Beatriz Merino or Pieter De Crem belong to ?
OR((Q463539,P27,c(Q15617994)), (Q1534851,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q463539
relation P27
action find
entity Q1534851
relation P27
type Q15617994
{'OR': [['Q463539', 'P27', {'concept': 'Q15617994'}], ['Q1534851', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q463539 property:P27 ?k } UNION { resource:Q1534851 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Pieter De Crem Beatriz Merino
action filter_type
action union
action find
entity Beatriz Merino
relation country of citizenship
action find
entity Pieter De Crem
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Beatriz Merino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pieter De Crem', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Beatriz_Merino property:country_of_citizenship ?k } UNION { resource:Pieter_De_Crem property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419 Q31
SYSTEM
Peru, Belgium
Q419 Q31
OR((Q463539,P27,c(Q15617994)), (Q1534851,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q463539
relation P27
action find
entity Q1534851
relation P27
type Q15617994
[ANSWERS] do Beatriz Merino or Pieter De Crem belong to
{'OR': [['Q463539', 'P27', {'concept': 'Q15617994'}], ['Q1534851', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q463539 property:P27 ?k } UNION { resource:Q1534851 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Peru Belgium
Peru and Belgium do Beatriz Merino or Pieter De Crem belong to
Peru Belgium
action filter_type
action union
action find
entity Beatriz Merino
relation country of citizenship
action find
entity Pieter De Crem
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Beatriz Merino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pieter De Crem', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Beatriz_Merino property:country_of_citizenship ?k } UNION { resource:Pieter_De_Crem property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q40767 Q31
P17
Q15617994
USER
Which administrative territories do Belgium or Francisco de Miranda belong to ?
OR((Q31,P17,c(Q15617994)), (Q40767,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q31
relation P17
action find
entity Q40767
relation P17
type Q15617994
{'OR': [['Q31', 'P17', {'concept': 'Q15617994'}], ['Q40767', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?t ) { ( resource:Q31 ) ( resource:Q40767 ) } . ?t property:P17 ?m } . ?m rdf:type ontology:Q15617994 }
Francisco de Miranda Belgium
action filter_type
action union
action find
entity Belgium
relation country
action find
entity Francisco de Miranda
relation country
type designation for an administrative territorial entity
{'OR': [['Belgium', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Francisco de Miranda', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?t ) { ( resource:Belgium ) ( resource:Francisco_de_Miranda ) } . ?t property:country ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q717
SYSTEM
Belgium, Venezuela
Q31 Q717
OR((Q31,P17,c(Q15617994)), (Q40767,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q31
relation P17
action find
entity Q40767
relation P17
type Q15617994
Belgium or Francisco de Miranda belong to Venezuela [ANSWERS]
{'OR': [['Q31', 'P17', {'concept': 'Q15617994'}], ['Q40767', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?t ) { ( resource:Q31 ) ( resource:Q40767 ) } . ?t property:P17 ?m } . ?m rdf:type ontology:Q15617994 }
Belgium Venezuela
Belgium or Francisco de Miranda belong to Venezuela Belgium and Venezuela
Belgium Venezuela
action filter_type
action union
action find
entity Belgium
relation country
action find
entity Francisco de Miranda
relation country
type designation for an administrative territorial entity
{'OR': [['Belgium', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Francisco de Miranda', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?t ) { ( resource:Belgium ) ( resource:Francisco_de_Miranda ) } . ?t property:country ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories share border with that administrative territory ?
(Q717,P47,c(Q15617994))
['Q717', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1180667 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['Venezuela', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Venezuela property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q31
SYSTEM
Did you mean Belgium ?
(Q31,P47,c(Q15617994)) (Q717,P47,c(Q15617994))
[ANSWER]
['Q31', 'P47', {'concept': 'Q15617994'}] ['Q717', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1180667 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Belgium ?
Belgium
['Belgium', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Venezuela', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Venezuela property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Venezuela. Could you tell me the answer for that?
(Q717,P47,c(Q15617994))
Q717
['Q717', 'P47', {'concept': 'Q15617994'}]
['Venezuela', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
11
Q739 Q142 Q145 Q155 Q29999 Q784 Q734 Q786 Q30 Q760 Q754
(Q717,P47,c(Q15617994))
[ANSWER]
['Q717', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1180667 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Colombia France United Kingdom Brazil Kingdom of the Netherlands Dominica Guyana Dominican Republic United States of America Saint Lucia Trinidad and Tobago
11
['Venezuela', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Venezuela property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1378218 Q40767
P17
Q15617994
USER
Which administrative territories are Francisco de Miranda or European Centre of Deported Resistance Members situated in ?
OR((Q40767,P17,c(Q15617994)), (Q1378218,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q40767
relation P17
action find
entity Q1378218
relation P17
type Q15617994
{'OR': [['Q40767', 'P17', {'concept': 'Q15617994'}], ['Q1378218', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1378218 property:P17 ?e } UNION { resource:Q40767 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
European Centre of Deported Resistance Members Francisco de Miranda
action filter_type
action union
action find
entity Francisco de Miranda
relation country
action find
entity European Centre of Deported Resistance Members
relation country
type designation for an administrative territorial entity
{'OR': [['Francisco de Miranda', 'country', {'concept': 'designation for an administrative territorial entity'}], ['European Centre of Deported Resistance Members', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:European_Centre_of_Deported_Resistance_Members property:country ?e } UNION { resource:Francisco_de_Miranda property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q717
SYSTEM
France, Venezuela
Q142 Q717
OR((Q40767,P17,c(Q15617994)), (Q1378218,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q40767
relation P17
action find
entity Q1378218
relation P17
type Q15617994
Francisco de Miranda or European Centre of Deported Resistance Members are situated in [ANSWERS]
{'OR': [['Q40767', 'P17', {'concept': 'Q15617994'}], ['Q1378218', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1378218 property:P17 ?e } UNION { resource:Q40767 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
France Venezuela
Francisco de Miranda or European Centre of Deported Resistance Members are situated in France and Venezuela
France Venezuela
action filter_type
action union
action find
entity Francisco de Miranda
relation country
action find
entity European Centre of Deported Resistance Members
relation country
type designation for an administrative territorial entity
{'OR': [['Francisco de Miranda', 'country', {'concept': 'designation for an administrative territorial entity'}], ['European Centre of Deported Resistance Members', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:European_Centre_of_Deported_Resistance_Members property:country ?e } UNION { resource:Francisco_de_Miranda property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q201658
USER
How many administrative territories are the countries of origin of greater number of collectables or film genres than that administrative territory ?
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:P495 ?y } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:country_of_origin ?y } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
designation for an administrative territorial entity collectable film genre
Comparative|Count over More/Less|Mult. entity type|Clarification
Q142
SYSTEM
Did you mean France ?
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:P495 ?y } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
Did you mean France ?
France
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:country_of_origin ?y } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Venezuela. Could you tell me the answer for that?
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
Q717
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
55
Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q837 Q252 Q399 Q258 Q45 Q159 Q43 Q41 Q155 Q794 Q884 Q241 Q33 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q854 Q230 Q20 Q1041 Q27 Q28 Q189 Q843 Q224 Q222 Q96 Q17 Q902 Q1036 Q974 Q1033 Q191 Q298 Q114 Q212 Q213 Q215 Q218 Q79 Q77 Q29
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
Israel Peru India Argentina France Netherlands United Kingdom People's Republic of China Nepal Indonesia Armenia South Africa Portugal Russia Turkey Greece Brazil Iran South Korea Cuba Finland Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Sri Lanka Georgia Norway Senegal Ireland Hungary Iceland Pakistan Croatia Albania Mexico Japan Bangladesh Uganda Democratic Republic of the Congo Nigeria Estonia Chile Kenya Ukraine Czech Republic Slovenia Romania Egypt Uruguay Spain
55
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q11060274 Q838948
USER
How many administrative territories are depicted in around 4 prints and works of art ?
(c(Q11060274)|c(Q838948),P180,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
value 4
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { FILTER ( ?m = 4 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?p WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } } GROUP BY ?p } }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
value 4
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { FILTER ( ?m = 4 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?p WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:print ) ( ontology:work_of_art ) } } GROUP BY ?p } }
[]
designation for an administrative territorial entity print work of art
SYSTEM
2
Q82025 Q80591
(c(Q11060274)|c(Q838948),P180,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
value 4
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { FILTER ( ?m = 4 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?p WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } } GROUP BY ?p } }
horn Atrani
2
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
value 4
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { FILTER ( ?m = 4 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?p WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:print ) ( ontology:work_of_art ) } } GROUP BY ?p } }
[]