Simple Question (Direct)
Simple Question
Q4429463
P39
Q12737077
USER
What was the position held by Oleg Soskovets ?
(Q4429463,P39,c(Q12737077))
action filter_type
action find
entity Q4429463
relation P39
type Q12737077
['Q4429463', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q4429463 property:P39 ?b }
Oleg Soskovets
action filter_type
action find
entity Oleg Soskovets
relation position held
type occupation
['Oleg Soskovets', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Oleg_Soskovets property:position_held ?b }
[]
occupation
Q14805701
SYSTEM
Deputy Chairman of the Government of the Russian Federation
Q14805701
(Q4429463,P39,c(Q12737077))
action filter_type
action find
entity Q4429463
relation P39
type Q12737077
The position held by Oleg Soskovets was the [ANSWER]
['Q4429463', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q4429463 property:P39 ?b }
Deputy Chairman of the Government of the Russian Federation
The position held by Oleg Soskovets was the Deputy Chairman of the Government of the Russian Federation
Deputy Chairman of the Government of the Russian Federation
action filter_type
action find
entity Oleg Soskovets
relation position held
type occupation
['Oleg Soskovets', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Oleg_Soskovets property:position_held ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4429463
P27
Q7275
USER
Which state is that person a civilian of ?
(Q14805701,P27,c(Q7275))
action filter_type
action find
entity Q4429463
relation P27
type Q7275
['Q14805701', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?t WHERE { resource:Q4429463 property:P27 ?t . ?t rdf:type ontology:Q7275 }
Oleg Soskovets
action filter_type
action find
entity Oleg Soskovets
relation country of citizenship
type state
['Deputy Chairman of the Government of the Russian Federation', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?t WHERE { resource:Oleg_Soskovets property:country_of_citizenship ?t . ?t rdf:type ontology:state }
[]
state
Q15180
SYSTEM
Soviet Union
Q15180
(Q14805701,P27,c(Q7275))
action filter_type
action find
entity Q4429463
relation P27
type Q7275
[ANSWER] is that person a civilian of
['Q14805701', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?t WHERE { resource:Q4429463 property:P27 ?t . ?t rdf:type ontology:Q7275 }
Soviet Union
Soviet Union is that person a civilian of
Soviet Union
action filter_type
action find
entity Oleg Soskovets
relation country of citizenship
type state
['Deputy Chairman of the Government of the Russian Federation', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?t WHERE { resource:Oleg_Soskovets property:country_of_citizenship ?t . ?t rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3732191 Q4429463
P106
Q12737077
USER
Which occupations have Oleg Soskovets and Ernesto Caccavale as his/her as a career ?
AND((Q4429463,P106,c(Q12737077)), (Q3732191,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q4429463
relation P106
action find
entity Q3732191
relation P106
type Q12737077
{'AND': [['Q4429463', 'P106', {'concept': 'Q12737077'}], ['Q3732191', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?k WHERE { resource:Q4429463 property:P106 ?k . resource:Q3732191 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Ernesto Caccavale Oleg Soskovets
action filter_type
action intersection
action find
entity Oleg Soskovets
relation occupation
action find
entity Ernesto Caccavale
relation occupation
type occupation
{'AND': [['Oleg Soskovets', 'occupation', {'concept': 'occupation'}], ['Ernesto Caccavale', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?k WHERE { resource:Oleg_Soskovets property:occupation ?k . resource:Ernesto_Caccavale property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
AND((Q4429463,P106,c(Q12737077)), (Q3732191,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q4429463
relation P106
action find
entity Q3732191
relation P106
type Q12737077
As [ANSWER] have Oleg Soskovets and Ernesto Caccavale as his/her as a career
{'AND': [['Q4429463', 'P106', {'concept': 'Q12737077'}], ['Q3732191', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?k WHERE { resource:Q4429463 property:P106 ?k . resource:Q3732191 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
politician
As politician have Oleg Soskovets and Ernesto Caccavale as his/her as a career
politician
action filter_type
action intersection
action find
entity Oleg Soskovets
relation occupation
action find
entity Ernesto Caccavale
relation occupation
type occupation
{'AND': [['Oleg Soskovets', 'occupation', {'concept': 'occupation'}], ['Ernesto Caccavale', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?k WHERE { resource:Oleg_Soskovets property:occupation ?k . resource:Ernesto_Caccavale property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3732191
P1412
Q34770
USER
What language does Ernesto Caccavale speak in?
(Q82955,P1412,c(Q34770))
action filter_type
action find
entity Q3732191
relation P1412
type Q34770
['Q82955', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q3732191 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
Ernesto Caccavale
action filter_type
action find
entity Ernesto Caccavale
relation languages spoken, written or signed
type language
['politician', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Ernesto_Caccavale property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q82955,P1412,c(Q34770))
action filter_type
action find
entity Q3732191
relation P1412
type Q34770
Ernesto Caccavale speaks to [ANSWER]
['Q82955', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q3732191 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
Italian
Ernesto Caccavale speaks to Italian
Italian
action filter_type
action find
entity Ernesto Caccavale
relation languages spoken, written or signed
type language
['politician', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Ernesto_Caccavale property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3732191
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q652,P19,c(Q56061))
action filter_type
action find
entity Q3732191
relation P19
type Q56061
['Q652', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q3732191 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Ernesto Caccavale
action filter_type
action find
entity Ernesto Caccavale
relation place of birth
type administrative territorial entity
['Italian', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Ernesto_Caccavale property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2634
SYSTEM
Naples
Q2634
(Q652,P19,c(Q56061))
action filter_type
action find
entity Q3732191
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q652', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q3732191 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Naples
Naples is the place of birth of that person
Naples
action filter_type
action find
entity Ernesto Caccavale
relation place of birth
type administrative territorial entity
['Italian', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Ernesto_Caccavale property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q730242
P921
Q12737077 Q2342494 Q386724
USER
Which occupations were the main subjects of approximately the same number of collectables and works 's work as test pilot ?
(c(Q2342494)|c(Q386724),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q730242
relation P921
type Q2342494
type Q386724
[[{'concept': 'Q2342494'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?t ) WHERE { { ?q rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q2342494 . ?i property:P921 ?q } UNION { ?q rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q386724 . ?i property:P921 ?q } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:P921 resource:Q730242 . { { ?d rdf:type ontology:Q2342494 } UNION { ?d rdf:type ontology:Q386724 } } } } . FILTER ( ?t = ?m ) }
test pilot
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity test pilot
relation main subject
type collectable
type work
[[{'concept': 'collectable'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?t ) WHERE { { ?q rdf:type ontology:occupation . ?i rdf:type ontology:collectable . ?i property:main_subject ?q } UNION { ?q rdf:type ontology:occupation . ?i rdf:type ontology:work . ?i property:main_subject ?q } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:main_subject resource:test_pilot . { { ?d rdf:type ontology:collectable } UNION { ?d rdf:type ontology:work } } } } . FILTER ( ?t = ?m ) }
[]
occupation collectable work
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q11631 Q5185440 Q765778 Q33999 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 Q618536 Q9402 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q2342494)|c(Q386724),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q730242
relation P921
type Q2342494
type Q386724
[ANSWERS] were the main subjects of approximately the same number of collectables and works 's work as test pilot
[[{'concept': 'Q2342494'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?t ) WHERE { { ?q rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q2342494 . ?i property:P921 ?q } UNION { ?q rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q386724 . ?i property:P921 ?q } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:P921 resource:Q730242 . { { ?d rdf:type ontology:Q2342494 } UNION { ?d rdf:type ontology:Q386724 } } } } . FILTER ( ?t = ?m ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack astronaut Crime scene cleanup organist actor 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 candidate ninja 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 war correspondent 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 photographer 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 the main subjects of approximately the same number of collectables and works 's work as test pilot
Fletcher Christian farmer librarian
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity test pilot
relation main subject
type collectable
type work
[[{'concept': 'collectable'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?t ) WHERE { { ?q rdf:type ontology:occupation . ?i rdf:type ontology:collectable . ?i property:main_subject ?q } UNION { ?q rdf:type ontology:occupation . ?i rdf:type ontology:work . ?i property:main_subject ?q } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:main_subject resource:test_pilot . { { ?d rdf:type ontology:collectable } UNION { ?d rdf:type ontology:work } } } } . FILTER ( ?t = ?m ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q15987302
P921
Q12737077 Q2342494 Q386724
USER
And what about legal profession?
(c(Q2342494)|c(Q386724),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q15987302
relation P921
type Q2342494
type Q386724
[[{'concept': 'Q2342494'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?p ) WHERE { { ?s property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q386724 } UNION { ?s property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l property:P921 resource:Q15987302 . { ?l rdf:type ?r . VALUES ( ?r ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?p = ?x ) }
legal profession
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity legal profession
relation main subject
type collectable
type work
[[{'concept': 'collectable'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?p ) WHERE { { ?s property:main_subject ?o . ?o rdf:type ontology:occupation . ?s rdf:type ontology:work } UNION { ?s property:main_subject ?o . ?o rdf:type ontology:occupation . ?s rdf:type ontology:collectable } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l property:main_subject resource:legal_profession . { ?l rdf:type ?r . VALUES ( ?r ) { ( ontology:work ) ( ontology:collectable ) } } } } . FILTER ( ?p = ?x ) }
[]
occupation collectable work
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 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 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q2342494)|c(Q386724),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q15987302
relation P921
type Q2342494
type Q386724
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?p ) WHERE { { ?s property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q386724 } UNION { ?s property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l property:P921 resource:Q15987302 . { ?l rdf:type ?r . VALUES ( ?r ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?p = ?x ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor 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 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 war correspondent 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 photographer 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 librarian
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity legal profession
relation main subject
type collectable
type work
[[{'concept': 'collectable'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?s ) AS ?p ) WHERE { { ?s property:main_subject ?o . ?o rdf:type ontology:occupation . ?s rdf:type ontology:work } UNION { ?s property:main_subject ?o . ?o rdf:type ontology:occupation . ?s rdf:type ontology:collectable } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l property:main_subject resource:legal_profession . { ?l rdf:type ?r . VALUES ( ?r ) { ( ontology:work ) ( ontology:collectable ) } } } } . FILTER ( ?p = ?x ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q652
P37
Q15617994
USER
Which administrative territories have their official language as Italian ?
(c(Q15617994),P37,Q652)
action filter_type
action find_reverse
entity Q652
relation P37
type Q15617994
[{'concept': 'Q15617994'}, 'P37', 'Q652']
SELECT DISTINCT ?v WHERE { ?v property:P37 resource:Q652 . ?v rdf:type ontology:Q15617994 }
Italian
action filter_type
action find_reverse
entity Italian
relation official language
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'official language', 'Italian']
SELECT DISTINCT ?v WHERE { ?v property:official_language resource:Italian . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q39 Q238
SYSTEM
Italy, Switzerland, San Marino
Q238 Q53381 Q243220 Q101526 Q39 Q38 Q493428
(c(Q15617994),P37,Q652)
action filter_type
action find_reverse
entity Q652
relation P37
type Q15617994
[ANSWERS] have their official language as Italian
[{'concept': 'Q15617994'}, 'P37', 'Q652']
SELECT DISTINCT ?v WHERE { ?v property:P37 resource:Q652 . ?v rdf:type ontology:Q15617994 }
San Marino Tolmezzo Rocca di Cave Rovetta Switzerland Italy Mistretta
Italy, Switzerland and San Marino have their official language as Italian
Italy Switzerland San Marino
action filter_type
action find_reverse
entity Italian
relation official language
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'official language', 'Italian']
SELECT DISTINCT ?v WHERE { ?v property:official_language resource:Italian . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q238
P159
Q7210356
USER
Which political organization has its HQ location at that administrative territory ?
(c(Q7210356),P159,Q238)
action filter_type
action find_reverse
entity Q238
relation P159
type Q7210356
[{'concept': 'Q7210356'}, 'P159', 'Q238']
SELECT DISTINCT ?i WHERE { ?i property:P159 resource:Q238 . ?i rdf:type ontology:Q7210356 }
San Marino
action filter_type
action find_reverse
entity San Marino
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'San Marino']
SELECT DISTINCT ?i WHERE { ?i property:headquarters_location resource:San_Marino . ?i rdf:type ontology:political_organization }
[]
political organization
Clarification for simple ques.
Q39
SYSTEM
Did you mean Switzerland ?
Q38 Q39 Q238
(c(Q7210356),P159,Q38) (c(Q7210356),P159,Q39) (c(Q7210356),P159,Q238)
[ANSWER]
[{'concept': 'Q7210356'}, 'P159', 'Q38'] [{'concept': 'Q7210356'}, 'P159', 'Q39'] [{'concept': 'Q7210356'}, 'P159', 'Q238']
SELECT DISTINCT ?i WHERE { ?i property:P159 resource:Q238 . ?i rdf:type ontology:Q7210356 }
Italy Switzerland San Marino
Did you mean Switzerland ?
Switzerland
[{'concept': 'political organization'}, 'headquarters location', 'Italy'] [{'concept': 'political organization'}, 'headquarters location', 'Switzerland'] [{'concept': 'political organization'}, 'headquarters location', 'San Marino']
SELECT DISTINCT ?i WHERE { ?i property:headquarters_location resource:San_Marino . ?i rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
USER
No, I meant San Marino. Could you tell me the answer for that?
(c(Q7210356),P159,Q238)
Q238
[{'concept': 'Q7210356'}, 'P159', 'Q238']
[{'concept': 'political organization'}, 'headquarters location', 'San Marino']
[]
Q2707282
SYSTEM
Sammarinese Socialist Party
Q2707282
(c(Q7210356),P159,Q238)
action filter_type
action find_reverse
entity Q238
relation P159
type Q7210356
[ANSWER] has its HQ location at that administrative territory
[{'concept': 'Q7210356'}, 'P159', 'Q238']
SELECT DISTINCT ?i WHERE { ?i property:P159 resource:Q238 . ?i rdf:type ontology:Q7210356 }
Sammarinese Socialist Party
Sammarinese Socialist Party has its HQ location at that administrative territory
Sammarinese Socialist Party
action filter_type
action find_reverse
entity San Marino
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'San Marino']
SELECT DISTINCT ?i WHERE { ?i property:headquarters_location resource:San_Marino . ?i rdf:type ontology:political_organization }
[]