Simple Question (Direct)
Simple Question
Q3770617
P19
Q56061
USER
Which administrative territory was Giuseppe Galimberti born at ?
(Q3770617,P19,c(Q56061))
action filter_type
action find
entity Q3770617
relation P19
type Q56061
['Q3770617', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q3770617 property:P19 ?l }
Giuseppe Galimberti
action filter_type
action find
entity Giuseppe Galimberti
relation place of birth
type administrative territorial entity
['Giuseppe Galimberti', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Giuseppe_Galimberti property:place_of_birth ?l }
[]
administrative territorial entity
Q490
SYSTEM
Milan
Q490
(Q3770617,P19,c(Q56061))
action filter_type
action find
entity Q3770617
relation P19
type Q56061
Giuseppe Galimberti was born in [ANSWER]
['Q3770617', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q3770617 property:P19 ?l }
Milan
Giuseppe Galimberti was born in Milan
Milan
action filter_type
action find
entity Giuseppe Galimberti
relation place of birth
type administrative territorial entity
['Giuseppe Galimberti', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Giuseppe_Galimberti property:place_of_birth ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q490
P36
Q7275
USER
Which states have that administrative territory as their administrative centre ?
(c(Q7275),P36,Q490)
action filter_type
action find_reverse
entity Q490
relation P36
type Q7275
[{'concept': 'Q7275'}, 'P36', 'Q490']
SELECT DISTINCT ?a WHERE { ?a property:P36 resource:Q490 . ?a rdf:type ontology:Q7275 }
Milan
action filter_type
action find_reverse
entity Milan
relation capital
type state
[{'concept': 'state'}, 'capital', 'Milan']
SELECT DISTINCT ?a WHERE { ?a property:capital resource:Milan . ?a rdf:type ontology:state }
[]
state
Q223936 Q746443 Q209857
SYSTEM
Kingdom of Italy, Golden Ambrosian Republic, Kingdom of Lombardy–Venetia
Q223936 Q746443 Q209857
(c(Q7275),P36,Q490)
action filter_type
action find_reverse
entity Q490
relation P36
type Q7275
[ANSWERS] have that administrative territory as their administrative centre
[{'concept': 'Q7275'}, 'P36', 'Q490']
SELECT DISTINCT ?a WHERE { ?a property:P36 resource:Q490 . ?a rdf:type ontology:Q7275 }
Kingdom of Italy Golden Ambrosian Republic Kingdom of Lombardy–Venetia
Kingdom of Italy, Golden Ambrosian Republic and Kingdom of Lombardy–Venetia have that administrative territory as their administrative centre
Kingdom of Italy Golden Ambrosian Republic Kingdom of Lombardy–Venetia
action filter_type
action find_reverse
entity Milan
relation capital
type state
[{'concept': 'state'}, 'capital', 'Milan']
SELECT DISTINCT ?a WHERE { ?a property:capital resource:Milan . ?a rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q490
P417
Q502895
USER
What is the name of person who is the patron saint of Milan ?
(Q490,P417,c(Q502895))
action filter_type
action find
entity Q490
relation P417
type Q502895
['Q490', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q490 property:P417 ?n }
Milan
action filter_type
action find
entity Milan
relation patron saint
type common name
['Milan', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Milan property:patron_saint ?n }
[]
common name
Q43689
SYSTEM
Ambrose
Q43689
(Q490,P417,c(Q502895))
action filter_type
action find
entity Q490
relation P417
type Q502895
The name of person is the patron saint of Milan is [ANSWER]
['Q490', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q490 property:P417 ?n }
Ambrose
The name of person is the patron saint of Milan is Ambrose
Ambrose
action filter_type
action find
entity Milan
relation patron saint
type common name
['Milan', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Milan property:patron_saint ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43689
P2348
Q3024240
USER
Which former country was that person associated with ?
(Q43689,P2348,c(Q3024240))
action filter_type
action find
entity Q43689
relation P2348
type Q3024240
['Q43689', 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ?v WHERE { resource:Q43689 property:P2348 ?v . ?v rdf:type ontology:Q3024240 }
Ambrose
action filter_type
action find
entity Ambrose
relation period
type former country
['Ambrose', 'period', {'concept': 'former country'}]
SELECT DISTINCT ?v WHERE { resource:Ambrose property:period ?v . ?v rdf:type ontology:former_country }
[]
former country
Q2277
SYSTEM
Roman Empire
Q2277
(Q43689,P2348,c(Q3024240))
action filter_type
action find
entity Q43689
relation P2348
type Q3024240
That person was associated with [ANSWER]
['Q43689', 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ?v WHERE { resource:Q43689 property:P2348 ?v . ?v rdf:type ontology:Q3024240 }
Roman Empire
That person was associated with Roman Empire
Roman Empire
action filter_type
action find
entity Ambrose
relation period
type former country
['Ambrose', 'period', {'concept': 'former country'}]
SELECT DISTINCT ?v WHERE { resource:Ambrose property:period ?v . ?v rdf:type ontology:former_country }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2277 Q9367142
P2348
Q502895
USER
Did Ursicinus of Brescia happen in the historical era of that former country ?
(Q9367142,P2348,Q2277)
action is_in
entity Q2277
action find
entity Q9367142
relation P2348
['Q9367142', 'P2348', 'Q2277']
ASK WHERE { resource:Q9367142 property:P2348 resource:Q2277 }
Roman Empire Ursicinus of Brescia
action is_in
entity Roman Empire
action find
entity Ursicinus of Brescia
relation period
['Ursicinus of Brescia', 'period', 'Roman Empire']
ASK WHERE { resource:Ursicinus_of_Brescia property:period resource:Roman_Empire }
[]
common name
SYSTEM
YES
(Q9367142,P2348,Q2277)
action is_in
entity Q2277
action find
entity Q9367142
relation P2348
[ANSWER]
['Q9367142', 'P2348', 'Q2277']
ASK WHERE { resource:Q9367142 property:P2348 resource:Q2277 }
Yes
action is_in
entity Roman Empire
action find
entity Ursicinus of Brescia
relation period
['Ursicinus of Brescia', 'period', 'Roman Empire']
ASK WHERE { resource:Ursicinus_of_Brescia property:period resource:Roman_Empire }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P122
Q22676587 Q3024240
USER
Which monarchic systems best describe the type of government of min number of former countries ?
(c(Q3024240),P122,Q2994894)
action argmin
action find_reverse_tuple_counts
relation P122
type Q22676587
type Q3024240
[{'concept': 'Q3024240'}, 'P122', 'Q2994894']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P122 ?w . ?w rdf:type ontology:Q22676587 . ?x rdf:type ontology:Q3024240 } GROUP BY ?w } } . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?m ) WHERE { ?g rdf:type ontology:Q22676587 . ?r rdf:type ontology:Q3024240 . ?r property:P122 ?g } GROUP BY ?g } . FILTER ( ?m = ?q ) }
action argmin
action find_reverse_tuple_counts
relation basic form of government
type monarchic system
type former country
[{'concept': 'former country'}, 'basic form of government', 'dual monarchy']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:basic_form_of_government ?w . ?w rdf:type ontology:monarchic_system . ?x rdf:type ontology:former_country } GROUP BY ?w } } . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?m ) WHERE { ?g rdf:type ontology:monarchic_system . ?r rdf:type ontology:former_country . ?r property:basic_form_of_government ?g } GROUP BY ?g } . FILTER ( ?m = ?q ) }
[]
monarchic system former country
Q849242
SYSTEM
hereditary monarchy
Q849242
(c(Q3024240),P122,Q2994894)
action argmin
action find_reverse_tuple_counts
relation P122
type Q22676587
type Q3024240
[ANSWER] best describe the type of government of min number of former countries
[{'concept': 'Q3024240'}, 'P122', 'Q2994894']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P122 ?w . ?w rdf:type ontology:Q22676587 . ?x rdf:type ontology:Q3024240 } GROUP BY ?w } } . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?m ) WHERE { ?g rdf:type ontology:Q22676587 . ?r rdf:type ontology:Q3024240 . ?r property:P122 ?g } GROUP BY ?g } . FILTER ( ?m = ?q ) }
hereditary monarchy
Hereditary monarchy best describe the type of government of min number of former countries
hereditary monarchy
action argmin
action find_reverse_tuple_counts
relation basic form of government
type monarchic system
type former country
[{'concept': 'former country'}, 'basic form of government', 'dual monarchy']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:basic_form_of_government ?w . ?w rdf:type ontology:monarchic_system . ?x rdf:type ontology:former_country } GROUP BY ?w } } . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?m ) WHERE { ?g rdf:type ontology:monarchic_system . ?r rdf:type ontology:former_country . ?r property:basic_form_of_government ?g } GROUP BY ?g } . FILTER ( ?m = ?q ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q1307214 Q7275 Q7275
USER
Which states have around 1 forms of government and states as the type of government ?
(c(Q7275),P122,c(Q1307214)|c(Q7275))
action approx
action union
action find_tuple_counts
relation P122
type Q7275
type Q1307214
action find_tuple_counts
relation P122
type Q7275
type Q7275
value 1
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?z ) WHERE { VALUES ( ?a ) { ( ontology:Q1307214 ) ( ontology:Q7275 ) } . ?g rdf:type ?a } GROUP BY ?w } . FILTER ( ?z = 1 ) }
action approx
action union
action find_tuple_counts
relation basic form of government
type state
type form of government
action find_tuple_counts
relation basic form of government
type state
type state
value 1
[{'concept': 'state'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'state'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?z ) WHERE { VALUES ( ?a ) { ( ontology:form_of_government ) ( ontology:state ) } . ?g rdf:type ?a } GROUP BY ?w } . FILTER ( ?z = 1 ) }
[]
form of government state state
Q49683 Q1277557 Q179876
SYSTEM
Grand Duchy of Lithuania, Democratic Federal Yugoslavia, Kingdom of England
Q3185305 Q179876 Q48685 Q1852345 Q2253783 Q13107370 Q986665 Q1998866 Q142417 Q4461035 Q11876909 Q558596 Q1789596 Q555994 Q940123 Q1277557 Q633573 Q1483430 Q1068408 Q623751 Q49683 Q736936 Q2456191 Q303421 Q75613 Q6083755 Q1415585 Q953432 Q21005050 Q422065 Q42585 Q146328 Q2365048 Q956451 Q156038 Q230407 Q157727 Q1192936 Q1322229 Q16624774 Q173082 Q38872 Q582861 Q588672 Q6412664 Q266923 Q752662 Q2578706 Q1885093
(c(Q7275),P122,c(Q1307214)|c(Q7275))
action approx
action union
action find_tuple_counts
relation P122
type Q7275
type Q1307214
action find_tuple_counts
relation P122
type Q7275
type Q7275
value 1
[ANSWERS] have around 1 forms of government and states as the type of government
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?z ) WHERE { VALUES ( ?a ) { ( ontology:Q1307214 ) ( ontology:Q7275 ) } . ?g rdf:type ?a } GROUP BY ?w } . FILTER ( ?z = 1 ) }
Kingdom of Israel Kingdom of England Judah Trucial States Kingdom of Glywysing Principality of Serbia First East Turkestan Republic Czech and Slovak Federal Republic Kingdom of Valencia Akkadian empire State of Brazil Hadiya Kingdom Croatia in personal union with Hungary Ag Qoyunlu Rustamid dynasty Democratic Federal Yugoslavia Kingdom of Rheged Principality of Kiev Kuru Kingdom Kingdom of Bernicia Grand Duchy of Lithuania Lu Kingdom of Seisyllwg Kingdom of Galicia Almoravid dynasty Islands of Refreshment Islamic State of Afghanistan Couto Misto Kingdom of Morgannwg Sultanate of Sulu Kingdom of Bohemia Commonwealth of the Philippines Adal Sultanate Kingdom of Dyfed Duchy of Courland and Semigallia Kingdom of Israel Ifat Sultanate Kingdom of Burundi Enlightenment in Spain Kingdom of Nicoya Dacia Prussia Marinid dynasty Hammadid dynasty Realm of Stefan Dragutin Kingdom of Mysore Hafsid dynasty Kingdom of Ceredigion Mahra Sultanate
Grand Duchy of Lithuania, Democratic Federal Yugoslavia and Kingdom of England have around 1 forms of government and states as the type of government
Grand Duchy of Lithuania Democratic Federal Yugoslavia Kingdom of England
action approx
action union
action find_tuple_counts
relation basic form of government
type state
type form of government
action find_tuple_counts
relation basic form of government
type state
type state
value 1
[{'concept': 'state'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'state'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?z ) WHERE { VALUES ( ?a ) { ( ontology:form_of_government ) ( ontology:state ) } . ?g rdf:type ?a } GROUP BY ?w } . FILTER ( ?z = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q312043 Q9367142
P39 P106
Q12737077
USER
Which occupations are the professions of Ursicinus of Brescia and were a position held by Giovanni Lajolo ?
AND((Q9367142,P106,c(Q12737077)), (Q312043,P39,c(Q12737077)))
action filter_type
action intersection
action find
entity Q9367142
relation P106
action find
entity Q312043
relation P39
type Q12737077
{'AND': [['Q9367142', 'P106', {'concept': 'Q12737077'}], ['Q312043', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?a WHERE { resource:Q9367142 property:P106 ?a . resource:Q312043 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Giovanni Lajolo Ursicinus of Brescia
action filter_type
action intersection
action find
entity Ursicinus of Brescia
relation occupation
action find
entity Giovanni Lajolo
relation position held
type occupation
{'AND': [['Ursicinus of Brescia', 'occupation', {'concept': 'occupation'}], ['Giovanni Lajolo', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?a WHERE { resource:Ursicinus_of_Brescia property:occupation ?a . resource:Giovanni_Lajolo property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q29182
SYSTEM
bishop
Q29182
AND((Q9367142,P106,c(Q12737077)), (Q312043,P39,c(Q12737077)))
action filter_type
action intersection
action find
entity Q9367142
relation P106
action find
entity Q312043
relation P39
type Q12737077
[ANSWER] is the professions of Ursicinus of Brescia and were a position held by Giovanni Lajolo
{'AND': [['Q9367142', 'P106', {'concept': 'Q12737077'}], ['Q312043', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?a WHERE { resource:Q9367142 property:P106 ?a . resource:Q312043 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
bishop
Bishop is the professions of Ursicinus of Brescia and were a position held by Giovanni Lajolo
bishop
action filter_type
action intersection
action find
entity Ursicinus of Brescia
relation occupation
action find
entity Giovanni Lajolo
relation position held
type occupation
{'AND': [['Ursicinus of Brescia', 'occupation', {'concept': 'occupation'}], ['Giovanni Lajolo', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?a WHERE { resource:Ursicinus_of_Brescia property:occupation ?a . resource:Giovanni_Lajolo property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5289191 Q312043
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Giovanni Lajolo or Dollah Salleh ?
OR((Q312043,P27,c(Q15617994)), (Q5289191,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q312043
relation P27
action find
entity Q5289191
relation P27
type Q15617994
{'OR': [['Q312043', 'P27', {'concept': 'Q15617994'}], ['Q5289191', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q312043 property:P27 ?u } UNION { resource:Q5289191 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Dollah Salleh Giovanni Lajolo
action filter_type
action union
action find
entity Giovanni Lajolo
relation country of citizenship
action find
entity Dollah Salleh
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Giovanni Lajolo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Dollah Salleh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Giovanni_Lajolo property:country_of_citizenship ?u } UNION { resource:Dollah_Salleh property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q833 Q38
SYSTEM
Malaysia, Italy
Q833 Q38
OR((Q312043,P27,c(Q15617994)), (Q5289191,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q312043
relation P27
action find
entity Q5289191
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Giovanni Lajolo or Dollah Salleh
{'OR': [['Q312043', 'P27', {'concept': 'Q15617994'}], ['Q5289191', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q312043 property:P27 ?u } UNION { resource:Q5289191 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Malaysia Italy
Malaysia and Italy are the countries of citizenship of Giovanni Lajolo or Dollah Salleh
Malaysia Italy
action filter_type
action union
action find
entity Giovanni Lajolo
relation country of citizenship
action find
entity Dollah Salleh
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Giovanni Lajolo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Dollah Salleh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Giovanni_Lajolo property:country_of_citizenship ?u } UNION { resource:Dollah_Salleh property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3260017 Q490
P190 P20
Q515
USER
Which cities are partner towns of Milan or did the expiration of Lothar von Seebach occur ?
OR((Q490,P190,c(Q515)), (Q3260017,P20,c(Q515)))
action filter_type
action union
action find
entity Q490
relation P190
action find
entity Q3260017
relation P20
type Q515
{'OR': [['Q490', 'P190', {'concept': 'Q515'}], ['Q3260017', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q490 property:P190 ?e } UNION { resource:Q3260017 property:P20 ?e } } . ?e rdf:type ontology:Q515 }
Lothar von Seebach Milan
action filter_type
action union
action find
entity Milan
relation sister city
action find
entity Lothar von Seebach
relation place of death
type city
{'OR': [['Milan', 'sister city', {'concept': 'city'}], ['Lothar von Seebach', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Milan property:sister_city ?e } UNION { resource:Lothar_von_Seebach property:place_of_death ?e } } . ?e rdf:type ontology:city }
[]
city
Q6602 Q1794 Q456 Q5972 Q1486 Q1761
SYSTEM
Strasbourg, Frankfurt, Lyon, Medan, Buenos Aires, Dublin
Q6602 Q1794 Q456 Q5972 Q1486 Q1761
OR((Q490,P190,c(Q515)), (Q3260017,P20,c(Q515)))
action filter_type
action union
action find
entity Q490
relation P190
action find
entity Q3260017
relation P20
type Q515
[ANSWERS] are partner towns of Milan or did the expiration of Lothar von Seebach occur
{'OR': [['Q490', 'P190', {'concept': 'Q515'}], ['Q3260017', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q490 property:P190 ?e } UNION { resource:Q3260017 property:P20 ?e } } . ?e rdf:type ontology:Q515 }
Strasbourg Frankfurt Lyon Medan Buenos Aires Dublin
Strasbourg, Frankfurt, Lyon, Medan, Buenos Aires and Dublin are partner towns of Milan or did the expiration of Lothar von Seebach occur
Strasbourg Frankfurt Lyon Medan Buenos Aires Dublin
action filter_type
action union
action find
entity Milan
relation sister city
action find
entity Lothar von Seebach
relation place of death
type city
{'OR': [['Milan', 'sister city', {'concept': 'city'}], ['Lothar von Seebach', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Milan property:sister_city ?e } UNION { resource:Lothar_von_Seebach property:place_of_death ?e } } . ?e rdf:type ontology:city }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P163
Q14660 Q515
USER
Which cities are associated with greater number of flags than that city ?
(c(Q515),P163,c(Q14660))
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?z WHERE { ?z property:Q14660 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 }
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?z WHERE { ?z property:flag ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:flag }
[]
flag city
Comparative|More/Less|Single entity type|Clarification
Q1486
SYSTEM
Did you mean Buenos Aires ?
(c(Q515),P163,c(Q14660))
[ANSWER]
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?z WHERE { ?z property:Q14660 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 }
Did you mean Buenos Aires ?
Buenos Aires
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?z WHERE { ?z property:flag ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:flag }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q515),P163,c(Q14660))
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
[]
Q1410 Q235 Q1486
SYSTEM
Gibraltar, Monaco, Buenos Aires
Q1410 Q235 Q1486
(c(Q515),P163,c(Q14660))
[ANSWERS] are associated with greater number of flags than that city
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?z WHERE { ?z property:Q14660 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 }
Gibraltar Monaco Buenos Aires
Gibraltar, Monaco and Buenos Aires are associated with greater number of flags than that city
Gibraltar Monaco Buenos Aires
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?z WHERE { ?z property:flag ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1410 Q235 Q1486
P915
Q838948
USER
Which works of art were filmed in the location those cities ?
(c(Q838948),P915,Q1410) (c(Q838948),P915,Q235) (c(Q838948),P915,Q1486)
action filter_type
action find_reverse
entity prev_answer
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q1410'] [{'concept': 'Q838948'}, 'P915', 'Q235'] [{'concept': 'Q838948'}, 'P915', 'Q1486']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q838948 . ?w property:P915 ?j . VALUES ( ?j ) { ( resource:Q1410 ) ( resource:Q235 ) ( resource:Q1486 ) } }
Gibraltar Monaco Buenos Aires
action filter_type
action find_reverse
entity prev_answer
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Gibraltar'] [{'concept': 'work of art'}, 'filming location', 'Monaco'] [{'concept': 'work of art'}, 'filming location', 'Buenos Aires']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:work_of_art . ?w property:filming_location ?j . VALUES ( ?j ) { ( resource:Gibraltar ) ( resource:Monaco ) ( resource:Buenos_Aires ) } }
[]
work of art
Q17548046 Q309246 Q19089
SYSTEM
Mission: Impossible – Rogue Nation, The Motorcycle Diaries, GoldenEye
Q7721274 Q7764212 Q107761 Q272064 Q1961848 Q7682977 Q3222253 Q832337 Q2995882 Q2700853 Q511332 Q467181 Q167411 Q1539566 Q13553865 Q17548046 Q180279 Q2624961 Q750003 Q952325 Q1192319 Q2979521 Q550248 Q3542287 Q137098 Q3207829 Q486954 Q1534298 Q19089 Q1198532 Q2981321 Q3966787 Q3264300 Q1124617 Q1217981 Q891843 Q284980 Q759420 Q1158191 Q7774081 Q5243195 Q1048645 Q625780 Q5195528 Q5401825 Q5098638 Q579261 Q771408 Q5595457 Q59543 Q3488730 Q531043 Q7960605 Q1219153 Q2389686 Q1073800 Q2309964 Q658012 Q2891067 Q1404323 Q3014230 Q7749968 Q245271 Q16596682 Q4812235 Q748851 Q7801019 Q3013895 Q501749 Q1410993 Q2010539 Q1634612 Q1935237 Q7046348 Q5421229 Q6461506 Q7180923 Q2593159 Q1537032 Q511840 Q1346495 Q4985548 Q4804211 Q15548282 Q309246 Q7718650 Q4457179 Q5350916 Q4985478 Q5434167 Q514313 Q6172439 Q113549 Q2338802 Q2418707 Q3415869 Q610191 Q3425555 Q302842 Q221090 Q2633310 Q547120 Q1204213
(c(Q838948),P915,Q1410) (c(Q838948),P915,Q235) (c(Q838948),P915,Q1486)
action filter_type
action find_reverse
entity prev_answer
relation P915
type Q838948
[ANSWERS] were filmed in the location those cities
[{'concept': 'Q838948'}, 'P915', 'Q1410'] [{'concept': 'Q838948'}, 'P915', 'Q235'] [{'concept': 'Q838948'}, 'P915', 'Q1486']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q838948 . ?w property:P915 ?j . VALUES ( ?j ) { ( resource:Q1410 ) ( resource:Q235 ) ( resource:Q1486 ) } }
The Captain's Paradise The Silent Enemy You Only Live Twice The Living Daylights Instant Justice Tangiers The Running Man Kill Cruise I Was Monty's Double Operation Snatch Bonjour tristesse The Good Thief The Counterfeiters Priceless Weekend of a Champion Mission: Impossible – Rogue Nation Never Say Never Again Once Upon a Crime Sleeper Son of the Pink Panther Heartbreaker My Way Monte Carlo Turf Grace of Monaco Möbius Swordfish Grand Prix GoldenEye The Green Glove Coco Foreign Intrigue Lovely Rita, sainte patronne des cas désespérés Condorman Bay of Angels Bombs on Monte Carlo Feu Mathias Pascal The Jewel of the Nile The Last Time I Saw Paris The Wedding in Monaco Daylight Robbery Hostel: Part II The Red Shoes Widows Estrellas de Buenos Aires Chile 672 Crane World Highlander II: The Quickening Grandma Son of the Bride Tango Feroz There Be Dragons Waiting for the Messiah The Official Story El Aura Chinese Take-Away Tetro Carancho La suerte en tus manos Nine Queens White Elephant The Man Who Owed a Death Evita Made in Argentina Así es Buenos Aires The Secret in Their Eyes On Probation Everybody Has a Plan Paco Il Gaucho Música en espera The Truce U2 3D Noches de Buenos Aires Expertos en Pinchazos La Canción de Buenos Aires Phase 7 The Informers Moebius Mi Buenos Aires querido SuperClásico Buenos Aires Vice Versa Asesinato en el Senado de la Nación Focus The Motorcycle Diaries The Blonde from Buenos Aires Tesis sobre un homicidio El Cantor de Buenos Aires Buenas noches, Buenos Aires Fantasmas en Buenos Aires Waiting for the Hearse ¿Quién mató a Mariano Ferreyra? Nuovomondo A Year Without Love Plata Quemada Same Love, Same Rain Imagining Argentina The Plague From Beginning to End Children of Men Olympic Garage The Fall Happy Together
Mission: Impossible – Rogue Nation, The Motorcycle Diaries and GoldenEye were filmed in the location those cities
Mission: Impossible – Rogue Nation The Motorcycle Diaries GoldenEye
action filter_type
action find_reverse
entity prev_answer
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Gibraltar'] [{'concept': 'work of art'}, 'filming location', 'Monaco'] [{'concept': 'work of art'}, 'filming location', 'Buenos Aires']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:work_of_art . ?w property:filming_location ?j . VALUES ( ?j ) { ( resource:Gibraltar ) ( resource:Monaco ) ( resource:Buenos_Aires ) } }
[]