Simple Question (Direct)
Simple Question
Q502949
P39
Q12737077
USER
What were the positions held by John Baldacci ?
(Q502949,P39,c(Q12737077))
action filter_type
action find
entity Q502949
relation P39
type Q12737077
['Q502949', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q502949 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
John Baldacci
action filter_type
action find
entity John Baldacci
relation position held
type occupation
['John Baldacci', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:John_Baldacci property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q13218630 Q18342769 Q3506352
SYSTEM
United States representative, member of the State Senate of Maine, Governor of Maine
Q13218630 Q18342769 Q3506352
(Q502949,P39,c(Q12737077))
action filter_type
action find
entity Q502949
relation P39
type Q12737077
The positions held by John Baldacci were [ANSWERS]
['Q502949', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q502949 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
United States representative member of the State Senate of Maine Governor of Maine
The positions held by John Baldacci were United States representative, member of the State Senate of Maine and Governor of Maine
United States representative member of the State Senate of Maine Governor of Maine
action filter_type
action find
entity John Baldacci
relation position held
type occupation
['John Baldacci', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:John_Baldacci property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q502949
P69
Q3918
USER
Which university is John Baldacci an alumni of ?
(Q502949,P69,c(Q3918))
action filter_type
action find
entity Q502949
relation P69
type Q3918
['Q502949', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?h WHERE { resource:Q502949 property:P69 ?h . ?h rdf:type ontology:Q3918 }
John Baldacci
action filter_type
action find
entity John Baldacci
relation educated at
type university
['John Baldacci', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?h WHERE { resource:John_Baldacci property:educated_at ?h . ?h rdf:type ontology:university }
[]
university
Q1307345
SYSTEM
University of Maine
Q1307345
(Q502949,P69,c(Q3918))
action filter_type
action find
entity Q502949
relation P69
type Q3918
Which university is John Baldacci an alumni of
['Q502949', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?h WHERE { resource:Q502949 property:P69 ?h . ?h rdf:type ontology:Q3918 }
University of Maine
Which university is John Baldacci an alumni of
University of Maine
action filter_type
action find
entity John Baldacci
relation educated at
type university
['John Baldacci', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?h WHERE { resource:John_Baldacci property:educated_at ?h . ?h rdf:type ontology:university }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5246264
Q3918
USER
And also tell me about Dean Karr?
(Q5246264,P69,c(Q3918))
action filter_type
action find
entity Q5246264
relation P69
type Q3918
['Q5246264', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q3918 . resource:Q5246264 property:P69 ?p }
Dean Karr
action filter_type
action find
entity Dean Karr
relation educated at
type university
['Dean Karr', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:university . resource:Dean_Karr property:educated_at ?p }
[]
university
Q597236
SYSTEM
Washington State University
Q597236
(Q5246264,P69,c(Q3918))
action filter_type
action find
entity Q5246264
relation P69
type Q3918
[ANSWER]
['Q5246264', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q3918 . resource:Q5246264 property:P69 ?p }
Washington State University
Washington State University
action filter_type
action find
entity Dean Karr
relation educated at
type university
['Dean Karr', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:university . resource:Dean_Karr property:educated_at ?p }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q316070
P921
Q12737077 Q386724 Q838948
USER
Which occupations were around the same number of works or works of art mainly about as Fletcher Christian ?
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q316070
relation P921
type Q386724
type Q838948
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?x ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:Q386724 ) ( ontology:Q838948 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:P921 resource:Q316070 . { { ?r rdf:type ontology:Q386724 } UNION { ?r rdf:type ontology:Q838948 } } } } . FILTER ( ?x = ?t ) }
Fletcher Christian
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity Fletcher Christian
relation main subject
type work
type work of art
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?x ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:work ) ( ontology:work_of_art ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:main_subject resource:Fletcher_Christian . { { ?r rdf:type ontology:work } UNION { ?r rdf:type ontology:work_of_art } } } } . FILTER ( ?x = ?t ) }
[]
occupation work work of art
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q316070
relation P921
type Q386724
type Q838948
[ANSWERS] were around the same number of works or works of art mainly about as Fletcher Christian
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?x ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:Q386724 ) ( ontology:Q838948 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:P921 resource:Q316070 . { { ?r rdf:type ontology:Q386724 } UNION { ?r rdf:type ontology:Q838948 } } } } . FILTER ( ?x = ?t ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Fletcher Christian, farmer and librarian were around the same number of works or works of art mainly about as Fletcher Christian
Fletcher Christian farmer librarian
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity Fletcher Christian
relation main subject
type work
type work of art
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?x ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:work ) ( ontology:work_of_art ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:main_subject resource:Fletcher_Christian . { { ?r rdf:type ontology:work } UNION { ?r rdf:type ontology:work_of_art } } } } . FILTER ( ?x = ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3898686 Q3506352
P27 P17
Q15617994
USER
Which administrative territories do Governor of Maine belong to or are the countries of citizenship of Pedro Merencio ?
OR((Q3506352,P17,c(Q15617994)), (Q3898686,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3506352
relation P17
action find
entity Q3898686
relation P27
type Q15617994
{'OR': [['Q3506352', 'P17', {'concept': 'Q15617994'}], ['Q3898686', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3898686 property:P27 ?y } UNION { resource:Q3506352 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Pedro Merencio Governor of Maine
action filter_type
action union
action find
entity Governor of Maine
relation country
action find
entity Pedro Merencio
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Governor of Maine', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pedro Merencio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Pedro_Merencio property:country_of_citizenship ?y } UNION { resource:Governor_of_Maine property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q241 Q30
SYSTEM
Cuba, United States of America
Q241 Q30
OR((Q3506352,P17,c(Q15617994)), (Q3898686,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3506352
relation P17
action find
entity Q3898686
relation P27
type Q15617994
[ANSWERS] Governor of Maine belong to or are the countries of citizenship of Pedro Merencio
{'OR': [['Q3506352', 'P17', {'concept': 'Q15617994'}], ['Q3898686', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3898686 property:P27 ?y } UNION { resource:Q3506352 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Cuba United States of America
Cuba and United States of America Governor of Maine belong to or are the countries of citizenship of Pedro Merencio
Cuba United States of America
action filter_type
action union
action find
entity Governor of Maine
relation country
action find
entity Pedro Merencio
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Governor of Maine', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pedro Merencio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Pedro_Merencio property:country_of_citizenship ?y } UNION { resource:Governor_of_Maine property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7918929
P27
Q502895
USER
Are Velia Martínez a citizen of those administrative territories ?
(Q7918929,P27,Q241) (Q7918929,P27,Q30)
action is_in
entity prev_answer
action find
entity Q7918929
relation P27
['Q7918929', 'P27', 'Q241'] ['Q7918929', 'P27', 'Q30']
ASK WHERE { resource:Q7918929 property:P27 ?d . VALUES ( ?d ) { ( resource:Q241 ) ( resource:Q30 ) } }
Velia Martínez
action is_in
entity prev_answer
action find
entity Velia Martínez
relation country of citizenship
['Velia Martínez', 'country of citizenship', 'Cuba'] ['Velia Martínez', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Velia_Martínez property:country_of_citizenship ?d . VALUES ( ?d ) { ( resource:Cuba ) ( resource:United_States_of_America ) } }
[]
common name
SYSTEM
YES
(Q7918929,P27,Q241) (Q7918929,P27,Q30)
action is_in
entity prev_answer
action find
entity Q7918929
relation P27
[ANSWER]
['Q7918929', 'P27', 'Q241'] ['Q7918929', 'P27', 'Q30']
ASK WHERE { resource:Q7918929 property:P27 ?d . VALUES ( ?d ) { ( resource:Q241 ) ( resource:Q30 ) } }
Yes
action is_in
entity prev_answer
action find
entity Velia Martínez
relation country of citizenship
['Velia Martínez', 'country of citizenship', 'Cuba'] ['Velia Martínez', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Velia_Martínez property:country_of_citizenship ?d . VALUES ( ?d ) { ( resource:Cuba ) ( resource:United_States_of_America ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7660293 Q5246264
P27
Q15617994
USER
Which administrative territories are the native countriesof Dean Karr or Syed Ali Ausat Zaidi ?
OR((Q5246264,P27,c(Q15617994)), (Q7660293,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5246264
relation P27
action find
entity Q7660293
relation P27
type Q15617994
{'OR': [['Q5246264', 'P27', {'concept': 'Q15617994'}], ['Q7660293', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q5246264 property:P27 ?h } UNION { resource:Q7660293 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
Syed Ali Ausat Zaidi Dean Karr
action filter_type
action union
action find
entity Dean Karr
relation country of citizenship
action find
entity Syed Ali Ausat Zaidi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Dean Karr', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Syed Ali Ausat Zaidi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Dean_Karr property:country_of_citizenship ?h } UNION { resource:Syed_Ali_Ausat_Zaidi property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q668
SYSTEM
United States of America, India
Q30 Q668
OR((Q5246264,P27,c(Q15617994)), (Q7660293,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5246264
relation P27
action find
entity Q7660293
relation P27
type Q15617994
[ANSWERS] are the native countriesof Dean Karr or Syed Ali Ausat Zaidi
{'OR': [['Q5246264', 'P27', {'concept': 'Q15617994'}], ['Q7660293', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q5246264 property:P27 ?h } UNION { resource:Q7660293 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
United States of America India
United States of America and India are the native countriesof Dean Karr or Syed Ali Ausat Zaidi
United States of America India
action filter_type
action union
action find
entity Dean Karr
relation country of citizenship
action find
entity Syed Ali Ausat Zaidi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Dean Karr', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Syed Ali Ausat Zaidi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Dean_Karr property:country_of_citizenship ?h } UNION { resource:Syed_Ali_Ausat_Zaidi property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q1048835
USER
How many administrative territories and political territories have diplomatic relations with that administrative territory ?
(Q668,P530,c(Q15617994)) (Q668,P530,c(Q1048835)) (Q30,P530,c(Q15617994)) (Q30,P530,c(Q1048835)) (Q668,P530,c(Q15617994)) (Q668,P530,c(Q1048835))
['Q668', 'P530', {'concept': 'Q15617994'}] ['Q668', 'P530', {'concept': 'Q1048835'}] ['Q30', 'P530', {'concept': 'Q15617994'}] ['Q30', 'P530', {'concept': 'Q1048835'}] ['Q668', 'P530', {'concept': 'Q15617994'}] ['Q668', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q1488929 property:P530 ?z } UNION { resource:Q1488929 property:P530 ?y } UNION { resource:Q30 property:P530 ?z } UNION { resource:Q30 property:P530 ?y } UNION { resource:Q1488929 property:P530 ?z } UNION { resource:Q1488929 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
['India', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['India', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['India', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['India', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:India property:diplomatic_relation ?z } UNION { resource:India property:diplomatic_relation ?y } UNION { resource:United_States_of_America property:diplomatic_relation ?z } UNION { resource:United_States_of_America property:diplomatic_relation ?y } UNION { resource:India property:diplomatic_relation ?z } UNION { resource:India property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
designation for an administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q668
SYSTEM
Did you mean India ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q1488929 property:P530 ?z } UNION { resource:Q1488929 property:P530 ?y } UNION { resource:Q30 property:P530 ?z } UNION { resource:Q30 property:P530 ?y } UNION { resource:Q1488929 property:P530 ?z } UNION { resource:Q1488929 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Did you mean India ?
India
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:India property:diplomatic_relation ?z } UNION { resource:India property:diplomatic_relation ?y } UNION { resource:United_States_of_America property:diplomatic_relation ?z } UNION { resource:United_States_of_America property:diplomatic_relation ?y } UNION { resource:India property:diplomatic_relation ?z } UNION { resource:India property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q668,P530,c(Q15617994)) (Q668,P530,c(Q1048835)) (Q30,P530,c(Q15617994)) (Q30,P530,c(Q1048835)) (Q668,P530,c(Q15617994)) (Q668,P530,c(Q1048835))
['Q668', 'P530', {'concept': 'Q15617994'}] ['Q668', 'P530', {'concept': 'Q1048835'}] ['Q30', 'P530', {'concept': 'Q15617994'}] ['Q30', 'P530', {'concept': 'Q1048835'}] ['Q668', 'P530', {'concept': 'Q15617994'}] ['Q668', 'P530', {'concept': 'Q1048835'}]
['India', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['India', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['India', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['India', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
5 administrative territories and 2 political territories
Q159 Q801 Q155 Q183 Q408 Q30 Q38
(Q668,P530,c(Q15617994)) (Q668,P530,c(Q1048835)) (Q30,P530,c(Q15617994)) (Q30,P530,c(Q1048835)) (Q668,P530,c(Q15617994)) (Q668,P530,c(Q1048835))
[ANSWER]
['Q668', 'P530', {'concept': 'Q15617994'}] ['Q668', 'P530', {'concept': 'Q1048835'}] ['Q30', 'P530', {'concept': 'Q15617994'}] ['Q30', 'P530', {'concept': 'Q1048835'}] ['Q668', 'P530', {'concept': 'Q15617994'}] ['Q668', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q1488929 property:P530 ?z } UNION { resource:Q1488929 property:P530 ?y } UNION { resource:Q30 property:P530 ?z } UNION { resource:Q30 property:P530 ?y } UNION { resource:Q1488929 property:P530 ?z } UNION { resource:Q1488929 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Russia Israel Brazil Germany Australia United States of America Italy
5 administrative territories and 2 political territories
['India', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['India', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['India', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['India', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:India property:diplomatic_relation ?z } UNION { resource:India property:diplomatic_relation ?y } UNION { resource:United_States_of_America property:diplomatic_relation ?z } UNION { resource:United_States_of_America property:diplomatic_relation ?y } UNION { resource:India property:diplomatic_relation ?z } UNION { resource:India property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q668
P1071
Q860861
USER
Which sculpture has that administrative territory as its finally place of assembly ?
action filter_type
action find_reverse
entity Q668
relation P1071
type Q860861
SELECT DISTINCT ?a WHERE { ?a property:P1071 resource:Q668 . ?a rdf:type ontology:Q860861 }
India
action filter_type
action find_reverse
entity India
relation location of final assembly
type sculpture
SELECT DISTINCT ?a WHERE { ?a property:location_of_final_assembly resource:India . ?a rdf:type ontology:sculpture }
[]
sculpture
Q16963343
SYSTEM
Double leaf jali
Q16963343
action filter_type
action find_reverse
entity Q668
relation P1071
type Q860861
[ANSWER] has that administrative territory as its finally place of assembly
SELECT DISTINCT ?a WHERE { ?a property:P1071 resource:Q668 . ?a rdf:type ontology:Q860861 }
Double leaf jali
Double leaf jali has that administrative territory as its finally place of assembly
Double leaf jali
action filter_type
action find_reverse
entity India
relation location of final assembly
type sculpture
SELECT DISTINCT ?a WHERE { ?a property:location_of_final_assembly resource:India . ?a rdf:type ontology:sculpture }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q926520 Q5246264
P19 P20
Q56061
USER
Which administrative territories are the places of birth of Dean Karr or did the expiration of Ramón Llorens i Pujadas occur ?
OR((Q5246264,P19,c(Q56061)), (Q926520,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5246264
relation P19
action find
entity Q926520
relation P20
type Q56061
{'OR': [['Q5246264', 'P19', {'concept': 'Q56061'}], ['Q926520', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q5246264 property:P19 ?b } UNION { resource:Q926520 property:P20 ?b } } . ?b rdf:type ontology:Q56061 }
Ramón Llorens i Pujadas Dean Karr
action filter_type
action union
action find
entity Dean Karr
relation place of birth
action find
entity Ramón Llorens i Pujadas
relation place of death
type administrative territorial entity
{'OR': [['Dean Karr', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ramón Llorens i Pujadas', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Dean_Karr property:place_of_birth ?b } UNION { resource:Ramón_Llorens_i_Pujadas property:place_of_death ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492 Q5083
SYSTEM
Barcelona, Seattle
Q1492 Q5083
OR((Q5246264,P19,c(Q56061)), (Q926520,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5246264
relation P19
action find
entity Q926520
relation P20
type Q56061
[ANSWERS] are the places of birth of Dean Karr or did the expiration of Ramón Llorens i Pujadas occur
{'OR': [['Q5246264', 'P19', {'concept': 'Q56061'}], ['Q926520', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q5246264 property:P19 ?b } UNION { resource:Q926520 property:P20 ?b } } . ?b rdf:type ontology:Q56061 }
Barcelona Seattle
Barcelona and Seattle are the places of birth of Dean Karr or did the expiration of Ramón Llorens i Pujadas occur
Barcelona Seattle
action filter_type
action union
action find
entity Dean Karr
relation place of birth
action find
entity Ramón Llorens i Pujadas
relation place of death
type administrative territorial entity
{'OR': [['Dean Karr', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ramón Llorens i Pujadas', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Dean_Karr property:place_of_birth ?b } UNION { resource:Ramón_Llorens_i_Pujadas property:place_of_death ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P417
Q1445650 Q56061
USER
Which administrative territories have adopted around the same number of holidays as their patron saint as that administrative territory ?
(c(Q56061),P417,c(Q1445650))
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
holiday administrative territorial entity
Comparative|More/Less|Single entity type|Clarification
Q5083
SYSTEM
Did you mean Seattle ?
(c(Q56061),P417,c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
Did you mean Seattle ?
Seattle
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
Comparative Reasoning (All)
USER
No, I meant Barcelona. Could you tell me the answer for that?
(c(Q56061),P417,c(Q1445650))
Q1492
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
[]
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q264716 Q5818 Q187352 Q11974 Q12883498 Q40801 Q212841 Q54494 Q454875 Q14209773 Q50057 Q34111 Q117388 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q6221 Q2028 Q46718 Q929022 Q641 Q46165 Q649 Q58463 Q3395964 Q73489 Q54119 Q53825 Q200908 Q15090 Q81258 Q36647 Q13375 Q47074 Q59257 Q15088 Q4361 Q2914723 Q10305 Q53265 Q6340 Q101229 Q100129 Q52547 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q39519 Q82208 Q116440 Q2284679 Q3557616 Q374108 Q3562704 Q220 Q90 Q496890 Q297224 Q431389 Q5991813 Q380189 Q617 Q470461 Q259039 Q733574 Q54556 Q932648 Q487786 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q100943 Q51400 Q504216 Q244193 Q1747381 Q51315 Q492475 Q334577 Q210470 Q39493 Q11959 Q329984 Q47034 Q15095 Q215080 Q270288 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q102820 Q15487 Q244207 Q1957 Q50074 Q1897 Q46864
(c(Q56061),P417,c(Q1445650))
[ANSWERS] have adopted around the same number of holidays as their patron saint as that administrative territory
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
Carzano Córdoba Kavala Las Palmas de Gran Canaria Pano Platres Borca di Cadore Drama Belvedere di Spinello Amarante Municipality San Lorenzo de' Picenardi Cagnano Amiterno Pozzallo Strangolagalli Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Brescia Verona Carrè Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Koufalia Camerino San Pedro Altilia Rethymno Lleida Padula Cork Pisa Aielli Montefortino Tarragona Curitiba Nemausus Zaragoza Gemona del Friuli Castel Giorgio Martinengo Calvenzano Campomaggiore Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brinzio Kastritsa Arpino General Alvear, Mendoza Platres Altrei Molista Rome Paris Balestrate Padergnone Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Giardinello Istiaia Africo Didymoteicho Orihuela Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Sorbolo Spoltore St. Martin in Passeier Cagno Polykastro Villamagna Valença Quetzaltenango Katerini Cantello Alicante Úbeda Espoo Albacete Machala Riccò del Golfo di Spezia Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Nibbiano Berga Campione d'Italia Vologda Castellafiume Cagliari Arcugnano
Moscow, Madrid and Milan have adopted around the same number of holidays as their patron saint as that administrative territory
Moscow Madrid Milan
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q914 Q1492
P190
Q56061
USER
Which administrative territories are twin towns of Barcelona and Volgograd ?
AND((Q1492,P190,c(Q56061)), (Q914,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q1492
relation P190
action find
entity Q914
relation P190
type Q56061
{'AND': [['Q1492', 'P190', {'concept': 'Q56061'}], ['Q914', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { resource:Q1492 property:P190 ?w . resource:Q914 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Volgograd Barcelona
action filter_type
action intersection
action find
entity Barcelona
relation sister city
action find
entity Volgograd
relation sister city
type administrative territorial entity
{'AND': [['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}], ['Volgograd', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { resource:Barcelona property:sister_city ?w . resource:Volgograd property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q365
SYSTEM
Cologne
Q365
AND((Q1492,P190,c(Q56061)), (Q914,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q1492
relation P190
action find
entity Q914
relation P190
type Q56061
[ANSWER] is twin towns of Barcelona and Volgograd
{'AND': [['Q1492', 'P190', {'concept': 'Q56061'}], ['Q914', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { resource:Q1492 property:P190 ?w . resource:Q914 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Cologne
Cologne is twin towns of Barcelona and Volgograd
Cologne
action filter_type
action intersection
action find
entity Barcelona
relation sister city
action find
entity Volgograd
relation sister city
type administrative territorial entity
{'AND': [['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}], ['Volgograd', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { resource:Barcelona property:sister_city ?w . resource:Volgograd property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]