Simple Question (Direct)
Simple Question
Q3731060
P27
Q15617994
USER
Which administrative territory is Eraldo Miscia an inhabitant of ?
(Q3731060,P27,c(Q15617994))
action filter_type
action find
entity Q3731060
relation P27
type Q15617994
['Q3731060', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q3731060 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Eraldo Miscia
action filter_type
action find
entity Eraldo Miscia
relation country of citizenship
type designation for an administrative territorial entity
['Eraldo Miscia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Eraldo_Miscia property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3731060,P27,c(Q15617994))
action filter_type
action find
entity Q3731060
relation P27
type Q15617994
[ANSWER] is Eraldo Miscia an inhabitant of
['Q3731060', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q3731060 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Italy
Italy is Eraldo Miscia an inhabitant of
Italy
action filter_type
action find
entity Eraldo Miscia
relation country of citizenship
type designation for an administrative territorial entity
['Eraldo Miscia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Eraldo_Miscia property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3731060
P106
Q12737077
USER
Which occupations are the professions of Eraldo Miscia ?
(Q3731060,P106,c(Q12737077))
action filter_type
action find
entity Q3731060
relation P106
type Q12737077
['Q3731060', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q3731060 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Eraldo Miscia
action filter_type
action find
entity Eraldo Miscia
relation occupation
type occupation
['Eraldo Miscia', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Eraldo_Miscia property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q4263842 Q49757 Q36180
SYSTEM
literary critic, poet, writer
Q4263842 Q49757 Q36180
(Q3731060,P106,c(Q12737077))
action filter_type
action find
entity Q3731060
relation P106
type Q12737077
The professions of Eraldo Miscia are [ANSWERS]
['Q3731060', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q3731060 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
literary critic poet writer
The professions of Eraldo Miscia are literary critic, poet and writer
literary critic poet writer
action filter_type
action find
entity Eraldo Miscia
relation occupation
type occupation
['Eraldo Miscia', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Eraldo_Miscia property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q36180
P425
Q1914636
USER
Who is associated with the field of occupation that one ?
(Q36180,P425,c(Q1914636))
action filter_type
action find
entity Q36180
relation P425
type Q1914636
['Q36180', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?t WHERE { resource:Q36180 property:P425 ?t . ?t rdf:type ontology:Q1914636 }
writer
action filter_type
action find
entity writer
relation field of this occupation
type activity
['writer', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?t WHERE { resource:writer property:field_of_this_occupation ?t . ?t rdf:type ontology:activity }
[]
activity
Clarification for simple ques.
Q4263842
SYSTEM
Did you mean literary critic ?
Q4263842 Q49757 Q36180
(Q4263842,P425,c(Q1914636)) (Q49757,P425,c(Q1914636)) (Q36180,P425,c(Q1914636))
[ANSWER]
['Q4263842', 'P425', {'concept': 'Q1914636'}] ['Q49757', 'P425', {'concept': 'Q1914636'}] ['Q36180', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?t WHERE { resource:Q36180 property:P425 ?t . ?t rdf:type ontology:Q1914636 }
literary critic poet writer
Did you mean literary critic ?
literary critic
['literary critic', 'field of this occupation', {'concept': 'activity'}] ['poet', 'field of this occupation', {'concept': 'activity'}] ['writer', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?t WHERE { resource:writer property:field_of_this_occupation ?t . ?t rdf:type ontology:activity }
[]
Simple Question (Coreferenced)
USER
No, I meant writer. Could you tell me the answer for that?
(Q36180,P425,c(Q1914636))
Q36180
['Q36180', 'P425', {'concept': 'Q1914636'}]
['writer', 'field of this occupation', {'concept': 'activity'}]
[]
Q8242
SYSTEM
literature
Q8242
(Q36180,P425,c(Q1914636))
action filter_type
action find
entity Q36180
relation P425
type Q1914636
The [ANSWER] is associated with the field of occupation that one
['Q36180', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?t WHERE { resource:Q36180 property:P425 ?t . ?t rdf:type ontology:Q1914636 }
literature
The literature is associated with the field of occupation that one
literature
action filter_type
action find
entity writer
relation field of this occupation
type activity
['writer', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?t WHERE { resource:writer property:field_of_this_occupation ?t . ?t rdf:type ontology:activity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q38
P47
Q15617994 Q56061
USER
How many administrative territories and administrative territories are bordered by Italy ?
(Q38,P47,c(Q15617994)) (Q38,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q38
relation P47
type Q15617994
action filter_type
action find
entity Q38
relation P47
type Q56061
['Q38', 'P47', {'concept': 'Q15617994'}] ['Q38', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { resource:Q38 property:P47 ?t . ?t rdf:type ontology:Q56061 } UNION { resource:Q38 property:P47 ?t . ?t rdf:type ontology:Q15617994 } }
Italy
action count
action union
action filter_type
action find
entity Italy
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Italy
relation shares border with
type administrative territorial entity
['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { resource:Italy property:shares_border_with ?t . ?t rdf:type ontology:administrative_territorial_entity } UNION { resource:Italy property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity administrative territorial entity
SYSTEM
5
Q142 Q39 Q237 Q238 Q215
(Q38,P47,c(Q15617994)) (Q38,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q38
relation P47
type Q15617994
action filter_type
action find
entity Q38
relation P47
type Q56061
[ANSWER]
['Q38', 'P47', {'concept': 'Q15617994'}] ['Q38', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { resource:Q38 property:P47 ?t . ?t rdf:type ontology:Q56061 } UNION { resource:Q38 property:P47 ?t . ?t rdf:type ontology:Q15617994 } }
France Switzerland Vatican City San Marino Slovenia
5
action count
action union
action filter_type
action find
entity Italy
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Italy
relation shares border with
type administrative territorial entity
['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { resource:Italy property:shares_border_with ?t . ?t rdf:type ontology:administrative_territorial_entity } UNION { resource:Italy property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3701830 Q38
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Italy or are the native countriesof Daniela Scalia ?
OR((Q38,P530,c(Q15617994)), (Q3701830,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q3701830
relation P27
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q3701830', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q3701830 property:P27 ?r } UNION { resource:Q38 property:P530 ?r } } }
Daniela Scalia Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Daniela Scalia
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Daniela Scalia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Daniela_Scalia property:country_of_citizenship ?r } UNION { resource:Italy property:diplomatic_relation ?r } } }
[]
designation for an administrative territorial entity
Q148 Q224 Q222 Q17 Q869 Q928 Q30 Q221 Q191 Q38
SYSTEM
Some of them are People's Republic of China, Croatia, Albania, Japan, Thailand, Philippines, United States of America, Republic of Macedonia, Estonia, Italy
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39 Q38 Q1016 Q739 Q227 Q948 Q191 Q733 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
OR((Q38,P530,c(Q15617994)), (Q3701830,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q3701830
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Italy or are the native countriesof Daniela Scalia
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q3701830', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q3701830 property:P27 ?r } UNION { resource:Q38 property:P530 ?r } } }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Switzerland Italy Libya Colombia Azerbaijan Tunisia Estonia Paraguay Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
People's Republic of China, Croatia, Albania, Japan, Thailand, Philippines, United States of America, Republic of Macedonia, Estonia and Italy have a diplomatic relationship with Italy or are the native countriesof Daniela Scalia
People's Republic of China Croatia Albania Japan Thailand Philippines United States of America Republic of Macedonia Estonia Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Daniela Scalia
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Daniela Scalia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Daniela_Scalia property:country_of_citizenship ?r } UNION { resource:Italy property:diplomatic_relation ?r } } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3701830
P1412
Q34770
USER
Which language can that person understand ?
(Q148,P1412,c(Q34770)) (Q224,P1412,c(Q34770)) (Q222,P1412,c(Q34770)) (Q17,P1412,c(Q34770)) (Q869,P1412,c(Q34770)) (Q928,P1412,c(Q34770)) (Q30,P1412,c(Q34770)) (Q221,P1412,c(Q34770)) (Q191,P1412,c(Q34770)) (Q38,P1412,c(Q34770))
action filter_type
action find
entity Q3701830
relation P1412
type Q34770
['Q148', 'P1412', {'concept': 'Q34770'}] ['Q224', 'P1412', {'concept': 'Q34770'}] ['Q222', 'P1412', {'concept': 'Q34770'}] ['Q17', 'P1412', {'concept': 'Q34770'}] ['Q869', 'P1412', {'concept': 'Q34770'}] ['Q928', 'P1412', {'concept': 'Q34770'}] ['Q30', 'P1412', {'concept': 'Q34770'}] ['Q221', 'P1412', {'concept': 'Q34770'}] ['Q191', 'P1412', {'concept': 'Q34770'}] ['Q38', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q34770 . resource:Q3701830 property:P1412 ?r }
Daniela Scalia
action filter_type
action find
entity Daniela Scalia
relation languages spoken, written or signed
type language
["People's Republic of China", 'languages spoken, written or signed', {'concept': 'language'}] ['Croatia', 'languages spoken, written or signed', {'concept': 'language'}] ['Albania', 'languages spoken, written or signed', {'concept': 'language'}] ['Japan', 'languages spoken, written or signed', {'concept': 'language'}] ['Thailand', 'languages spoken, written or signed', {'concept': 'language'}] ['Philippines', 'languages spoken, written or signed', {'concept': 'language'}] ['United States of America', 'languages spoken, written or signed', {'concept': 'language'}] ['Republic of Macedonia', 'languages spoken, written or signed', {'concept': 'language'}] ['Estonia', 'languages spoken, written or signed', {'concept': 'language'}] ['Italy', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:language . resource:Daniela_Scalia property:languages_spoken,_written_or_signed ?r }
[]
language
Q652
SYSTEM
Italian
Q652
(Q148,P1412,c(Q34770)) (Q224,P1412,c(Q34770)) (Q222,P1412,c(Q34770)) (Q17,P1412,c(Q34770)) (Q869,P1412,c(Q34770)) (Q928,P1412,c(Q34770)) (Q30,P1412,c(Q34770)) (Q221,P1412,c(Q34770)) (Q191,P1412,c(Q34770)) (Q38,P1412,c(Q34770))
action filter_type
action find
entity Q3701830
relation P1412
type Q34770
That person can understand [ANSWER]
['Q148', 'P1412', {'concept': 'Q34770'}] ['Q224', 'P1412', {'concept': 'Q34770'}] ['Q222', 'P1412', {'concept': 'Q34770'}] ['Q17', 'P1412', {'concept': 'Q34770'}] ['Q869', 'P1412', {'concept': 'Q34770'}] ['Q928', 'P1412', {'concept': 'Q34770'}] ['Q30', 'P1412', {'concept': 'Q34770'}] ['Q221', 'P1412', {'concept': 'Q34770'}] ['Q191', 'P1412', {'concept': 'Q34770'}] ['Q38', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q34770 . resource:Q3701830 property:P1412 ?r }
Italian
That person can understand Italian
Italian
action filter_type
action find
entity Daniela Scalia
relation languages spoken, written or signed
type language
["People's Republic of China", 'languages spoken, written or signed', {'concept': 'language'}] ['Croatia', 'languages spoken, written or signed', {'concept': 'language'}] ['Albania', 'languages spoken, written or signed', {'concept': 'language'}] ['Japan', 'languages spoken, written or signed', {'concept': 'language'}] ['Thailand', 'languages spoken, written or signed', {'concept': 'language'}] ['Philippines', 'languages spoken, written or signed', {'concept': 'language'}] ['United States of America', 'languages spoken, written or signed', {'concept': 'language'}] ['Republic of Macedonia', 'languages spoken, written or signed', {'concept': 'language'}] ['Estonia', 'languages spoken, written or signed', {'concept': 'language'}] ['Italy', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:language . resource:Daniela_Scalia property:languages_spoken,_written_or_signed ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3701830
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q652,P19,c(Q56061))
action filter_type
action find
entity Q3701830
relation P19
type Q56061
['Q652', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q3701830 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Daniela Scalia
action filter_type
action find
entity Daniela Scalia
relation place of birth
type administrative territorial entity
['Italian', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Daniela_Scalia property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2028
SYSTEM
Verona
Q2028
(Q652,P19,c(Q56061))
action filter_type
action find
entity Q3701830
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q652', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q3701830 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Verona
Verona is the birthplace of that person
Verona
action filter_type
action find
entity Daniela Scalia
relation place of birth
type administrative territorial entity
['Italian', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Daniela_Scalia property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2028
P47
Q15617994
USER
Which administrative territories are bordered by that administrative territory ?
(Q2028,P47,c(Q15617994))
action filter_type
action find
entity Q2028
relation P47
type Q15617994
['Q2028', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q2028 property:P47 ?c . ?c rdf:type ontology:Q15617994 }
Verona
action filter_type
action find
entity Verona
relation shares border with
type designation for an administrative territorial entity
['Verona', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Verona property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q47881 Q48457 Q47890
SYSTEM
San Pietro in Cariano, Tregnago, Grezzana
Q47671 Q48096 Q48107 Q46765 Q46731 Q46282 Q47881 Q47998 Q47614 Q48457 Q47520 Q47853 Q48476 Q46941 Q47777 Q47890
(Q2028,P47,c(Q15617994))
action filter_type
action find
entity Q2028
relation P47
type Q15617994
[ANSWERS] are bordered by that administrative territory
['Q2028', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q2028 property:P47 ?c . ?c rdf:type ontology:Q15617994 }
Mezzane di Sotto Sommacampagna Pescantina Bussolengo Buttapietra Castel d'Azzano San Pietro in Cariano San Martino Buon Albergo Villafranca di Verona Tregnago Sona San Giovanni Lupatoto San Mauro di Saline Negrar Roverè Veronese Grezzana
San Pietro in Cariano, Tregnago and Grezzana are bordered by that administrative territory
San Pietro in Cariano Tregnago Grezzana
action filter_type
action find
entity Verona
relation shares border with
type designation for an administrative territorial entity
['Verona', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Verona property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q47881 Q48457 Q47890
P47
Q15617994
USER
Which administrative territories are next to the border of San Pietro in Cariano, Tregnago and Grezzana ?
(c(Q15617994),P47,Q47881) (c(Q15617994),P47,Q48457) (c(Q15617994),P47,Q47890)
action union
action filter_type
action find
entity Q47881
relation P47
type Q15617994
action filter_type
action find
entity Q48457
relation P47
type Q15617994
action filter_type
action find
entity Q47890
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q47881'] [{'concept': 'Q15617994'}, 'P47', 'Q48457'] [{'concept': 'Q15617994'}, 'P47', 'Q47890']
SELECT DISTINCT ?a WHERE { VALUES ( ?y ) { ( resource:Q47881 ) ( resource:Q48457 ) } . ?y property:P47 ?a }
San Pietro in Cariano Tregnago Grezzana
action union
action filter_type
action find
entity San Pietro in Cariano
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Tregnago
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Grezzana
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'San Pietro in Cariano'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Tregnago'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Grezzana']
SELECT DISTINCT ?a WHERE { VALUES ( ?y ) { ( resource:San_Pietro_in_Cariano ) ( resource:Tregnago ) } . ?y property:shares_border_with ?a }
[]
designation for an administrative territorial entity
Q47486 Q47442 Q48107
SYSTEM
Vestenanova, Sant'Anna d'Alfaedo, Pescantina
Q46941 Q47121 Q48107 Q55929 Q47671 Q47116 Q48474 Q48476 Q47486 Q46200 Q46246 Q46941 Q46829 Q47106 Q47777 Q47442
(c(Q15617994),P47,Q47881) (c(Q15617994),P47,Q48457) (c(Q15617994),P47,Q47890)
action union
action filter_type
action find
entity Q47881
relation P47
type Q15617994
action filter_type
action find
entity Q48457
relation P47
type Q15617994
action filter_type
action find
entity Q47890
relation P47
type Q15617994
[ANSWERS] are next to the border of San Pietro in Cariano, Tregnago and Grezzana
[{'concept': 'Q15617994'}, 'P47', 'Q47881'] [{'concept': 'Q15617994'}, 'P47', 'Q48457'] [{'concept': 'Q15617994'}, 'P47', 'Q47890']
SELECT DISTINCT ?a WHERE { VALUES ( ?y ) { ( resource:Q47881 ) ( resource:Q48457 ) } . ?y property:P47 ?a }
Negrar Fumane Pescantina Marano di Valpolicella Mezzane di Sotto San Giovanni Ilarione Illasi San Mauro di Saline Vestenanova Badia Calavena Cazzano di Tramigna Negrar Bosco Chiesanuova Cerro Veronese Roverè Veronese Sant'Anna d'Alfaedo
Vestenanova, Sant'Anna d'Alfaedo and Pescantina are next to the border of San Pietro in Cariano, Tregnago and Grezzana
Vestenanova Sant'Anna d'Alfaedo Pescantina
action union
action filter_type
action find
entity San Pietro in Cariano
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Tregnago
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Grezzana
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'San Pietro in Cariano'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Tregnago'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Grezzana']
SELECT DISTINCT ?a WHERE { VALUES ( ?y ) { ( resource:San_Pietro_in_Cariano ) ( resource:Tregnago ) } . ?y property:shares_border_with ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P6
Q502895
USER
Which people do United States of America serve as the head of government for ?
(Q30,P6,c(Q502895))
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q30 property:P6 ?o . ?o rdf:type ontology:Q502895 }
United States of America
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:United_States_of_America property:head_of_government ?o . ?o rdf:type ontology:common_name }
[]
common name
Q76 Q9916 Q22686
SYSTEM
Barack Obama, Dwight D. Eisenhower, Donald Trump
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q35236 Q12325 Q33866 Q35648 Q9588 Q9582 Q35041 Q207 Q11813 Q91 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q11869 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
(Q30,P6,c(Q502895))
action filter_type
action find
entity Q30
relation P6
type Q502895
United States of America serve as the head of government for [ANSWERS]
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q30 property:P6 ?o . ?o rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Herbert Hoover James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William McKinley George W. Bush James Madison Abraham Lincoln Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William Henry Harrison Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
United States of America serve as the head of government for Barack Obama, Dwight D. Eisenhower and Donald Trump
Barack Obama Dwight D. Eisenhower Donald Trump
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:United_States_of_America property:head_of_government ?o . ?o rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q22686
P287
Q1076486
USER
Which sports venue had designs produced by that person ?
(c(Q1076486),P287,Q22686)
action filter_type
action find_reverse
entity Q22686
relation P287
type Q1076486
[{'concept': 'Q1076486'}, 'P287', 'Q22686']
SELECT DISTINCT ?n WHERE { ?n property:P287 resource:Q22686 . ?n rdf:type ontology:Q1076486 }
Donald Trump
action filter_type
action find_reverse
entity Donald Trump
relation designer
type sports venue
[{'concept': 'sports venue'}, 'designer', 'Donald Trump']
SELECT DISTINCT ?n WHERE { ?n property:designer resource:Donald_Trump . ?n rdf:type ontology:sports_venue }
[]
sports venue
Clarification for simple ques.
Q76
SYSTEM
Did you mean Barack Obama ?
Q76 Q9916 Q22686
(c(Q1076486),P287,Q76) (c(Q1076486),P287,Q9916) (c(Q1076486),P287,Q22686)
[ANSWER]
[{'concept': 'Q1076486'}, 'P287', 'Q76'] [{'concept': 'Q1076486'}, 'P287', 'Q9916'] [{'concept': 'Q1076486'}, 'P287', 'Q22686']
SELECT DISTINCT ?n WHERE { ?n property:P287 resource:Q22686 . ?n rdf:type ontology:Q1076486 }
Barack Obama Dwight D. Eisenhower Donald Trump
Did you mean Barack Obama ?
Barack Obama
[{'concept': 'sports venue'}, 'designer', 'Barack Obama'] [{'concept': 'sports venue'}, 'designer', 'Dwight D. Eisenhower'] [{'concept': 'sports venue'}, 'designer', 'Donald Trump']
SELECT DISTINCT ?n WHERE { ?n property:designer resource:Donald_Trump . ?n rdf:type ontology:sports_venue }
[]
Simple Question (Coreferenced)
USER
No, I meant Donald Trump. Could you tell me the answer for that?
(c(Q1076486),P287,Q22686)
Q22686
[{'concept': 'Q1076486'}, 'P287', 'Q22686']
[{'concept': 'sports venue'}, 'designer', 'Donald Trump']
[]
Q7847774
SYSTEM
Trump National Golf Club
Q7847774
(c(Q1076486),P287,Q22686)
action filter_type
action find_reverse
entity Q22686
relation P287
type Q1076486
[ANSWER] had designs produced by that person
[{'concept': 'Q1076486'}, 'P287', 'Q22686']
SELECT DISTINCT ?n WHERE { ?n property:P287 resource:Q22686 . ?n rdf:type ontology:Q1076486 }
Trump National Golf Club
Trump National Golf Club had designs produced by that person
Trump National Golf Club
action filter_type
action find_reverse
entity Donald Trump
relation designer
type sports venue
[{'concept': 'sports venue'}, 'designer', 'Donald Trump']
SELECT DISTINCT ?n WHERE { ?n property:designer resource:Donald_Trump . ?n rdf:type ontology:sports_venue }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q58778 Q334166 Q1914636
USER
How many activities are parts of atleast 1 systems or modes of transport ?
(c(Q1914636),P361,c(Q58778)|c(Q334166))
action count
action atleast
action union
action find_tuple_counts
relation P361
type Q1914636
type Q58778
action find_tuple_counts
relation P361
type Q1914636
type Q334166
value 1
[{'concept': 'Q1914636'}, 'P361', [{'concept': 'Q58778'}, {'concept': 'Q334166'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?t WHERE { { ?t rdf:type ontology:Q1914636 . ?x rdf:type ontology:Q334166 . ?t property:P361 ?x } UNION { ?t rdf:type ontology:Q1914636 . ?x rdf:type ontology:Q58778 . ?t property:P361 ?x } } GROUP BY ?t } . FILTER ( ?a >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation part of
type activity
type system
action find_tuple_counts
relation part of
type activity
type mode of transport
value 1
[{'concept': 'activity'}, 'part of', [{'concept': 'system'}, {'concept': 'mode of transport'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?t WHERE { { ?t rdf:type ontology:activity . ?x rdf:type ontology:mode_of_transport . ?t property:part_of ?x } UNION { ?t rdf:type ontology:activity . ?x rdf:type ontology:system . ?t property:part_of ?x } } GROUP BY ?t } . FILTER ( ?a >= 1 ) }
[]
system mode of transport activity
SYSTEM
3
Q3189909 Q306228 Q306096
(c(Q1914636),P361,c(Q58778)|c(Q334166))
action count
action atleast
action union
action find_tuple_counts
relation P361
type Q1914636
type Q58778
action find_tuple_counts
relation P361
type Q1914636
type Q334166
value 1
[ANSWER]
[{'concept': 'Q1914636'}, 'P361', [{'concept': 'Q58778'}, {'concept': 'Q334166'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?t WHERE { { ?t rdf:type ontology:Q1914636 . ?x rdf:type ontology:Q334166 . ?t property:P361 ?x } UNION { ?t rdf:type ontology:Q1914636 . ?x rdf:type ontology:Q58778 . ?t property:P361 ?x } } GROUP BY ?t } . FILTER ( ?a >= 1 ) }
Jum Abbergen Dismantling production
3
action count
action atleast
action union
action find_tuple_counts
relation part of
type activity
type system
action find_tuple_counts
relation part of
type activity
type mode of transport
value 1
[{'concept': 'activity'}, 'part of', [{'concept': 'system'}, {'concept': 'mode of transport'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?t WHERE { { ?t rdf:type ontology:activity . ?x rdf:type ontology:mode_of_transport . ?t property:part_of ?x } UNION { ?t rdf:type ontology:activity . ?x rdf:type ontology:system . ?t property:part_of ?x } } GROUP BY ?t } . FILTER ( ?a >= 1 ) }
[]