Simple Question (Direct)
Simple Question
Q451321
P106
Q12737077
USER
What is the job of Roberto Rosato ?
(Q451321,P106,c(Q12737077))
action filter_type
action find
entity Q451321
relation P106
type Q12737077
['Q451321', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q451321 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Roberto Rosato
action filter_type
action find
entity Roberto Rosato
relation occupation
type occupation
['Roberto Rosato', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Roberto_Rosato property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q451321,P106,c(Q12737077))
action filter_type
action find
entity Q451321
relation P106
type Q12737077
The job of Roberto Rosato is an [ANSWER]
['Q451321', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q451321 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
association football player
The job of Roberto Rosato is an association football player
association football player
action filter_type
action find
entity Roberto Rosato
relation occupation
type occupation
['Roberto Rosato', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Roberto_Rosato property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q451321
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q451321
relation P27
type Q15617994
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q451321 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Roberto Rosato
action filter_type
action find
entity Roberto Rosato
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Roberto_Rosato property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q451321
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q451321 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Italy
Italy is the country of citizenship of that person
Italy
action filter_type
action find
entity Roberto Rosato
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Roberto_Rosato property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q451321
P54
Q1194951
USER
What is Roberto Rosato a member of ?
(Q451321,P54,c(Q1194951))
action filter_type
action find
entity Q451321
relation P54
type Q1194951
['Q451321', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?z WHERE { resource:Q451321 property:P54 ?z . ?z rdf:type ontology:Q1194951 }
Roberto Rosato
action filter_type
action find
entity Roberto Rosato
relation member of sports team
type national sports team
['Roberto Rosato', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?z WHERE { resource:Roberto_Rosato property:member_of_sports_team ?z . ?z rdf:type ontology:national_sports_team }
[]
national sports team
Q676899
SYSTEM
Italy national football team
Q676899
(Q451321,P54,c(Q1194951))
action filter_type
action find
entity Q451321
relation P54
type Q1194951
Roberto Rosato a member of is [ANSWER]
['Q451321', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?z WHERE { resource:Q451321 property:P54 ?z . ?z rdf:type ontology:Q1194951 }
Italy national football team
Roberto Rosato a member of is Italy national football team
Italy national football team
action filter_type
action find
entity Roberto Rosato
relation member of sports team
type national sports team
['Roberto Rosato', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?z WHERE { resource:Roberto_Rosato property:member_of_sports_team ?z . ?z rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q676899
P1346
Q15275719
USER
Which recurring events were won by that national sports team ?
(c(Q15275719),P1346,Q676899)
action filter_type
action find_reverse
entity Q676899
relation P1346
type Q15275719
[{'concept': 'Q15275719'}, 'P1346', 'Q676899']
SELECT DISTINCT ?j WHERE { ?j property:P1346 resource:Q676899 . ?j rdf:type ontology:Q15275719 }
Italy national football team
action filter_type
action find_reverse
entity Italy national football team
relation winner
type recurring event
[{'concept': 'recurring event'}, 'winner', 'Italy national football team']
SELECT DISTINCT ?j WHERE { ?j property:winner resource:Italy_national_football_team . ?j rdf:type ontology:recurring_event }
[]
recurring event
Q37285 Q46934 Q131591
SYSTEM
2006 FIFA World Cup, 1982 FIFA World Cup, 1938 FIFA World Cup
Q131591 Q46934 Q37285 Q1477177
(c(Q15275719),P1346,Q676899)
action filter_type
action find_reverse
entity Q676899
relation P1346
type Q15275719
[ANSWERS] were won by that national sports team
[{'concept': 'Q15275719'}, 'P1346', 'Q676899']
SELECT DISTINCT ?j WHERE { ?j property:P1346 resource:Q676899 . ?j rdf:type ontology:Q15275719 }
1938 FIFA World Cup 1982 FIFA World Cup 2006 FIFA World Cup 1934 FIFA World Cup
2006 FIFA World Cup, 1982 FIFA World Cup and 1938 FIFA World Cup were won by that national sports team
2006 FIFA World Cup 1982 FIFA World Cup 1938 FIFA World Cup
action filter_type
action find_reverse
entity Italy national football team
relation winner
type recurring event
[{'concept': 'recurring event'}, 'winner', 'Italy national football team']
SELECT DISTINCT ?j WHERE { ?j property:winner resource:Italy_national_football_team . ?j rdf:type ontology:recurring_event }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P1344
Q15275719 Q502895
USER
Which recurring events did greater number of people compete in than that recurring event ?
(c(Q502895),P1344,c(Q15275719))
[{'concept': 'Q502895'}, 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?y WHERE { ?z property:P1344 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q15275719 }
[{'concept': 'common name'}, 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?y WHERE { ?z property:participant_of ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:recurring_event }
[]
recurring event common name
Comparative|More/Less|Single entity type|Clarification
Q37285
SYSTEM
Did you mean 2006 FIFA World Cup ?
(c(Q502895),P1344,c(Q15275719))
[ANSWER]
[{'concept': 'Q502895'}, 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?y WHERE { ?z property:P1344 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q15275719 }
Did you mean 2006 FIFA World Cup ?
2006 FIFA World Cup
[{'concept': 'common name'}, 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?y WHERE { ?z property:participant_of ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:recurring_event }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q502895),P1344,c(Q15275719))
[{'concept': 'Q502895'}, 'P1344', {'concept': 'Q15275719'}]
[{'concept': 'common name'}, 'participant of', {'concept': 'recurring event'}]
[]
Q47735 Q33881
SYSTEM
2002 FIFA World Cup, Tour de France
Q47735 Q33881
(c(Q502895),P1344,c(Q15275719))
Greater number of people competed in the [ANSWERS] than that recurring event
[{'concept': 'Q502895'}, 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?y WHERE { ?z property:P1344 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q15275719 }
2002 FIFA World Cup Tour de France
Greater number of people competed in the 2002 FIFA World Cup and Tour de France than that recurring event
2002 FIFA World Cup Tour de France
[{'concept': 'common name'}, 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?y WHERE { ?z property:participant_of ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:recurring_event }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1635703 Q37285
P47 P17
Q1048835
USER
Which political territories do 2006 FIFA World Cup belong to or share border with Benlloch ?
OR((Q37285,P17,c(Q1048835)), (Q1635703,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q37285
relation P17
action find
entity Q1635703
relation P47
type Q1048835
{'OR': [['Q37285', 'P17', {'concept': 'Q1048835'}], ['Q1635703', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1635703 property:P47 ?g } UNION { resource:Q37285 property:P17 ?g } } . ?g rdf:type ontology:Q1048835 }
Benlloch 2006 FIFA World Cup
action filter_type
action union
action find
entity 2006 FIFA World Cup
relation country
action find
entity Benlloch
relation shares border with
type political territorial entity
{'OR': [['2006 FIFA World Cup', 'country', {'concept': 'political territorial entity'}], ['Benlloch', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Benlloch property:shares_border_with ?g } UNION { resource:2006_FIFA_World_Cup property:country ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1646899 Q1646170 Q183 Q1635361 Q1646881 Q1635204 Q1635372
SYSTEM
Cabanes, Vilanova d'Alcolea, Germany, La Serra d'en Galceran, Vall d'Alba, Alcalà de Xivert, Torreblanca
Q1646899 Q1646170 Q183 Q1635361 Q1646881 Q1635204 Q1635372
OR((Q37285,P17,c(Q1048835)), (Q1635703,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q37285
relation P17
action find
entity Q1635703
relation P47
type Q1048835
[ANSWERS] 2006 FIFA World Cup belong to or share border with Benlloch
{'OR': [['Q37285', 'P17', {'concept': 'Q1048835'}], ['Q1635703', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1635703 property:P47 ?g } UNION { resource:Q37285 property:P17 ?g } } . ?g rdf:type ontology:Q1048835 }
Cabanes Vilanova d'Alcolea Germany La Serra d'en Galceran Vall d'Alba Alcalà de Xivert Torreblanca
Cabanes, Vilanova d'Alcolea, Germany, La Serra d'en Galceran, Vall d'Alba, Alcalà de Xivert and Torreblanca 2006 FIFA World Cup belong to or share border with Benlloch
Cabanes Vilanova d'Alcolea Germany La Serra d'en Galceran Vall d'Alba Alcalà de Xivert Torreblanca
action filter_type
action union
action find
entity 2006 FIFA World Cup
relation country
action find
entity Benlloch
relation shares border with
type political territorial entity
{'OR': [['2006 FIFA World Cup', 'country', {'concept': 'political territorial entity'}], ['Benlloch', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Benlloch property:shares_border_with ?g } UNION { resource:2006_FIFA_World_Cup property:country ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P495
Q317623 Q502895
USER
How many technical standards and people have Germany as their place of origin ?
(c(Q317623),P495,Q183) (c(Q502895),P495,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P495
type Q317623
action filter_type
action find_reverse
entity Q183
relation P495
type Q502895
[{'concept': 'Q317623'}, 'P495', 'Q183'] [{'concept': 'Q502895'}, 'P495', 'Q183']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { ?q property:P495 resource:Q183 . ?q rdf:type ontology:Q317623 } UNION { ?q rdf:type ontology:Q502895 . ?q property:P495 resource:Q183 } }
Germany
action count
action union
action filter_type
action find_reverse
entity Germany
relation country of origin
type technical standard
action filter_type
action find_reverse
entity Germany
relation country of origin
type common name
[{'concept': 'technical standard'}, 'country of origin', 'Germany'] [{'concept': 'common name'}, 'country of origin', 'Germany']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { ?q property:country_of_origin resource:Germany . ?q rdf:type ontology:technical_standard } UNION { ?q rdf:type ontology:common_name . ?q property:country_of_origin resource:Germany } }
[]
technical standard common name
SYSTEM
1 technical standards and 44 people
Q14551646 Q6812010 Q16649763 Q14551648 Q2309952 Q16065621 Q3832544 Q5709399 Q23043631 Q648362 Q1613167 Q109242 Q15300187 Q125556 Q1657543 Q438750 Q540045 Q616794 Q1918313 Q3010075 Q12403756 Q17388251 Q15299825 Q15735857 Q1976699 Q6215854 Q2143363 Q108864 Q17617827 Q20750459 Q11978004 Q15993268 Q15078911 Q24008618 Q1140201 Q15429759 Q21104276 Q16863502 Q4741788 Q7325506 Q20853393 Q16939134 Q6216279 Q6256882 Q20107547
(c(Q317623),P495,Q183) (c(Q502895),P495,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P495
type Q317623
action filter_type
action find_reverse
entity Q183
relation P495
type Q502895
[ANSWER]
[{'concept': 'Q317623'}, 'P495', 'Q183'] [{'concept': 'Q502895'}, 'P495', 'Q183']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { ?q property:P495 resource:Q183 . ?q rdf:type ontology:Q317623 } UNION { ?q rdf:type ontology:Q502895 . ?q property:P495 resource:Q183 } }
Willem van de Passe Melchior Küsel Otto Lorenz Simon van de Passe Peter Edward Stroehling Marie Bloede Lina Eckenstein Ottmar Elliger the Younger Fasil Bizuneh Hilko Ristau Hermann tom Ring Coldmirror Heinrich Wilhelm Blasius Eucharius Silber Ignatius Sichelbart Magdalena van de Passe Theodor Hildebrandt Julie von Egloffstein Master of the legend of St. Ursula Célestin Harst Isidor Ascheim Penelope Cleyn Margaret Altmann Elisabeth Juliana Friderica Bach Hans Wolff Schonat Johann Georg Fischer Renate Chasman Jürgen Roland Guillaume Ernest Greve Emil Ganso Jan Brockmann Paul Mayer Martin Henry Fischer Maxwell Crispijn van de Passe the Younger Lucas Kilian Sigrid Lorenzen Rupp Christopher Schutz Ambrose Godfrey Richard Enderlin DIN 933 Johann Wilhelm Haas Johann Ulrich Mayr John Schiller Sébastien-Bernard Seitz
1 technical standards and 44 people
action count
action union
action filter_type
action find_reverse
entity Germany
relation country of origin
type technical standard
action filter_type
action find_reverse
entity Germany
relation country of origin
type common name
[{'concept': 'technical standard'}, 'country of origin', 'Germany'] [{'concept': 'common name'}, 'country of origin', 'Germany']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { ?q property:country_of_origin resource:Germany . ?q rdf:type ontology:technical_standard } UNION { ?q rdf:type ontology:common_name . ?q property:country_of_origin resource:Germany } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q229
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with approximately the same number of political territories as Cyprus ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q229
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?f ) WHERE { ?a property:P530 ?o . ?a rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?a } . FILTER ( ?f = ?q ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y rdf:type ontology:Q15617994 . resource:Q229 property:P530 ?y } } }
Cyprus
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Cyprus
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?f ) WHERE { ?a property:diplomatic_relation ?o . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?a } . FILTER ( ?f = ?q ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Cyprus property:diplomatic_relation ?y } } }
[]
designation for an administrative territorial entity political territorial entity
Q30 Q159 Q142
SYSTEM
United States of America, Russia, France
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q229
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with approximately the same number of political territories as Cyprus
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?f ) WHERE { ?a property:P530 ?o . ?a rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?a } . FILTER ( ?f = ?q ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y rdf:type ontology:Q15617994 . resource:Q229 property:P530 ?y } } }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
United States of America, Russia and France have diplomatic relationships with approximately the same number of political territories as Cyprus
United States of America Russia France
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Cyprus
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?f ) WHERE { ?a property:diplomatic_relation ?o . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?a } . FILTER ( ?f = ?q ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Cyprus property:diplomatic_relation ?y } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q874
P530
Q15617994 Q1048835
USER
And how about Turkmenistan?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q874
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } GROUP BY ?s } . FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q874 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } }
Turkmenistan
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Turkmenistan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?s } . FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Turkmenistan property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q874
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } GROUP BY ?s } . FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q874 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen Syria Oman
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Turkmenistan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?f ) WHERE { ?y property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?s } . FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Turkmenistan property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16558995 Q38
P530 P19
Q15617994
USER
Which administrative territories have diplomatic relations with Italy or are the birthplace of Giacomo Gherardi ?
OR((Q38,P530,c(Q15617994)), (Q16558995,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q16558995
relation P19
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q16558995', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q16558995 property:P19 ?f } UNION { resource:Q38 property:P530 ?f } } . ?f rdf:type ontology:Q15617994 }
Giacomo Gherardi Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Giacomo Gherardi
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Giacomo Gherardi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Giacomo_Gherardi property:place_of_birth ?f } UNION { resource:Italy property:diplomatic_relation ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q236 Q214 Q211 Q884 Q215 Q37 Q794 Q224 Q843 Q948
SYSTEM
Some of them are Montenegro, Slovakia, Latvia, South Korea, Slovenia, Lithuania, Iran, Croatia, Pakistan, Tunisia
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 Q1016 Q739 Q227 Q948 Q191 Q733 Q236 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q103305 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
OR((Q38,P530,c(Q15617994)), (Q16558995,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q16558995
relation P19
type Q15617994
[ANSWERS] have diplomatic relations with Italy or are the birthplace of Giacomo Gherardi
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q16558995', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q16558995 property:P19 ?f } UNION { resource:Q38 property:P530 ?f } } . ?f rdf:type ontology:Q15617994 }
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 Libya Colombia Azerbaijan Tunisia Estonia Paraguay Montenegro Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Volterra Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Montenegro, Slovakia, Latvia, South Korea, Slovenia, Lithuania, Iran, Croatia, Pakistan and Tunisia have diplomatic relations with Italy or are the birthplace of Giacomo Gherardi
Montenegro Slovakia Latvia South Korea Slovenia Lithuania Iran Croatia Pakistan Tunisia
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Giacomo Gherardi
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Giacomo Gherardi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Giacomo_Gherardi property:place_of_birth ?f } UNION { resource:Italy property:diplomatic_relation ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q1048835
USER
How many political territories have diplomatic relationships with that administrative territory ?
(Q214,P530,c(Q1048835))
['Q214', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7541598 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Slovakia property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q215
SYSTEM
Did you mean Slovenia ?
(Q236,P530,c(Q1048835)) (Q214,P530,c(Q1048835)) (Q211,P530,c(Q1048835)) (Q884,P530,c(Q1048835)) (Q215,P530,c(Q1048835)) (Q37,P530,c(Q1048835)) (Q794,P530,c(Q1048835)) (Q224,P530,c(Q1048835)) (Q843,P530,c(Q1048835)) (Q948,P530,c(Q1048835))
[ANSWER]
['Q236', 'P530', {'concept': 'Q1048835'}] ['Q214', 'P530', {'concept': 'Q1048835'}] ['Q211', 'P530', {'concept': 'Q1048835'}] ['Q884', 'P530', {'concept': 'Q1048835'}] ['Q215', 'P530', {'concept': 'Q1048835'}] ['Q37', 'P530', {'concept': 'Q1048835'}] ['Q794', 'P530', {'concept': 'Q1048835'}] ['Q224', 'P530', {'concept': 'Q1048835'}] ['Q843', 'P530', {'concept': 'Q1048835'}] ['Q948', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7541598 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Did you mean Slovenia ?
Slovenia
['Montenegro', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Latvia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['South Korea', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Slovenia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Lithuania', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Iran', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Croatia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Pakistan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Tunisia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Slovakia property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Slovakia. Could you tell me the answer for that?
(Q214,P530,c(Q1048835))
Q214
['Q214', 'P530', {'concept': 'Q1048835'}]
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
1
Q183
(Q214,P530,c(Q1048835))
[ANSWER]
['Q214', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7541598 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Germany
1
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Slovakia property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]