Simple Question (Direct)
Simple Question
Q3291832
P39
Q12737077
USER
What were the positions for which Marie-Françoise Pérol-Dumont were appointed ?
(Q3291832,P39,c(Q12737077))
action filter_type
action find
entity Q3291832
relation P39
type Q12737077
['Q3291832', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q3291832 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Marie-Françoise Pérol-Dumont
action filter_type
action find
entity Marie-Françoise Pérol-Dumont
relation position held
type occupation
['Marie-Françoise Pérol-Dumont', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Marie-Françoise_Pérol-Dumont property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q14828018 Q3044918
SYSTEM
member of the Senate of France, member of the French National Assembly
Q14828018 Q3044918
(Q3291832,P39,c(Q12737077))
action filter_type
action find
entity Q3291832
relation P39
type Q12737077
[ANSWERS]
['Q3291832', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q3291832 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
member of the Senate of France member of the French National Assembly
The member of the Senate of France and member of the French National Assembly
member of the Senate of France member of the French National Assembly
action filter_type
action find
entity Marie-Françoise Pérol-Dumont
relation position held
type occupation
['Marie-Françoise Pérol-Dumont', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Marie-Françoise_Pérol-Dumont property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q14828018
P106
Q502895
USER
Who has a job as that occupation ?
(c(Q502895),P106,Q14828018)
action filter_type
action find_reverse
entity Q14828018
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q14828018']
SELECT DISTINCT ?k WHERE { ?k property:P106 resource:Q14828018 . ?k rdf:type ontology:Q502895 }
member of the Senate of France
action filter_type
action find_reverse
entity member of the Senate of France
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the Senate of France']
SELECT DISTINCT ?k WHERE { ?k property:occupation resource:member_of_the_Senate_of_France . ?k rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q3044918
SYSTEM
Did you mean member of the French National Assembly ?
Q14828018 Q3044918
(c(Q502895),P106,Q14828018) (c(Q502895),P106,Q3044918)
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q14828018'] [{'concept': 'Q502895'}, 'P106', 'Q3044918']
SELECT DISTINCT ?k WHERE { ?k property:P106 resource:Q14828018 . ?k rdf:type ontology:Q502895 }
member of the Senate of France member of the French National Assembly
Did you mean member of the French National Assembly ?
member of the French National Assembly
[{'concept': 'common name'}, 'occupation', 'member of the Senate of France'] [{'concept': 'common name'}, 'occupation', 'member of the French\xa0National Assembly']
SELECT DISTINCT ?k WHERE { ?k property:occupation resource:member_of_the_Senate_of_France . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant member of the Senate of France. Could you tell me the answer for that?
(c(Q502895),P106,Q14828018)
Q14828018
[{'concept': 'Q502895'}, 'P106', 'Q14828018']
[{'concept': 'common name'}, 'occupation', 'member of the Senate of France']
[]
Q3383859
SYSTEM
Pierre Barbier
Q3383859
(c(Q502895),P106,Q14828018)
action filter_type
action find_reverse
entity Q14828018
relation P106
type Q502895
[ANSWER] has a job as that occupation
[{'concept': 'Q502895'}, 'P106', 'Q14828018']
SELECT DISTINCT ?k WHERE { ?k property:P106 resource:Q14828018 . ?k rdf:type ontology:Q502895 }
Pierre Barbier
Pierre Barbier has a job as that occupation
Pierre Barbier
action filter_type
action find_reverse
entity member of the Senate of France
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the Senate of France']
SELECT DISTINCT ?k WHERE { ?k property:occupation resource:member_of_the_Senate_of_France . ?k rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12737077 Q838948 Q386724
USER
Which occupations were the main subjects in the work min number of works of art or works ?
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?q ) { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?a ) WHERE { { ?r property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q838948 } UNION { ?r property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q386724 } } GROUP BY ?y } } . FILTER ( ?d = ?q ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?d ) WHERE { { ?f property:P921 ?z . ?z rdf:type ontology:Q12737077 . ?f rdf:type ontology:Q838948 } UNION { ?z rdf:type ontology:Q12737077 . ?f rdf:type ontology:Q386724 . ?f property:P921 ?z } } GROUP BY ?z } }
action argmin
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?q ) { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?a ) WHERE { { ?r property:main_subject ?y . ?y rdf:type ontology:occupation . ?r rdf:type ontology:work_of_art } UNION { ?r property:main_subject ?y . ?y rdf:type ontology:occupation . ?r rdf:type ontology:work } } GROUP BY ?y } } . FILTER ( ?d = ?q ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?d ) WHERE { { ?f property:main_subject ?z . ?z rdf:type ontology:occupation . ?f rdf:type ontology:work_of_art } UNION { ?z rdf:type ontology:occupation . ?f rdf:type ontology:work . ?f property:main_subject ?z } } GROUP BY ?z } }
[]
occupation work of art work
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q9045502 Q2666591 Q5185440 Q765778 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q43845 Q14128148 Q814356 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q372436 Q1238570 Q182436 Q2259532 Q361593 Q1856798 Q16707842
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
[ANSWERS] were the main subjects in the work min number of works of art or works
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?q ) { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?a ) WHERE { { ?r property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q838948 } UNION { ?r property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q386724 } } GROUP BY ?y } } . FILTER ( ?d = ?q ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?d ) WHERE { { ?f property:P921 ?z . ?z rdf:type ontology:Q12737077 . ?f rdf:type ontology:Q838948 } UNION { ?z rdf:type ontology:Q12737077 . ?f rdf:type ontology:Q386724 . ?f property:P921 ?z } } GROUP BY ?z } }
praetor member of the Parliament of Norway Chair of the Federal Reserve Crime scene cleanup organist surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives 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 classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate businessperson gridiron football player call girl 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 Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor peasant missionary United States federal judge musician Nomarch poet medical examiner police officer statesman political scientist librarian cleric police officer baseball umpire Member of Parliament in the United Kingdom
Fletcher Christian, farmer and librarian were the main subjects in the work min number of works of art or works
Fletcher Christian farmer librarian
action argmin
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?q ) { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?a ) WHERE { { ?r property:main_subject ?y . ?y rdf:type ontology:occupation . ?r rdf:type ontology:work_of_art } UNION { ?r property:main_subject ?y . ?y rdf:type ontology:occupation . ?r rdf:type ontology:work } } GROUP BY ?y } } . FILTER ( ?d = ?q ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?d ) WHERE { { ?f property:main_subject ?z . ?z rdf:type ontology:occupation . ?f rdf:type ontology:work_of_art } UNION { ?z rdf:type ontology:occupation . ?f rdf:type ontology:work . ?f property:main_subject ?z } } GROUP BY ?z } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q131512 Q192483
P417
Q502895
USER
How many people are the patron saints of farmer or Lemnos ?
(Q131512,P417,c(Q502895)) (Q192483,P417,c(Q502895))
action count
action union
action filter_type
action find
entity Q131512
relation P417
type Q502895
action filter_type
action find
entity Q192483
relation P417
type Q502895
['Q131512', 'P417', {'concept': 'Q502895'}] ['Q192483', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?k property:P417 ?q . VALUES ( ?k ) { ( resource:Q192483 ) ( resource:Q131512 ) } }
farmer Lemnos
action count
action union
action filter_type
action find
entity farmer
relation patron saint
type common name
action filter_type
action find
entity Lemnos
relation patron saint
type common name
['farmer', 'patron saint', {'concept': 'common name'}] ['Lemnos', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?k property:patron_saint ?q . VALUES ( ?k ) { ( resource:Lemnos ) ( resource:farmer ) } }
[]
common name
SYSTEM
5
Q119289 Q166876 Q151967 Q44265 Q43982
(Q131512,P417,c(Q502895)) (Q192483,P417,c(Q502895))
action count
action union
action filter_type
action find
entity Q131512
relation P417
type Q502895
action filter_type
action find
entity Q192483
relation P417
type Q502895
[ANSWER]
['Q131512', 'P417', {'concept': 'Q502895'}] ['Q192483', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?k property:P417 ?q . VALUES ( ?k ) { ( resource:Q192483 ) ( resource:Q131512 ) } }
Leonard of Port Maurice Isidore of Seville Saint Blaise Benedict of Nursia Bartholomew the Apostle
5
action count
action union
action filter_type
action find
entity farmer
relation patron saint
type common name
action filter_type
action find
entity Lemnos
relation patron saint
type common name
['farmer', 'patron saint', {'concept': 'common name'}] ['Lemnos', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?k property:patron_saint ?q . VALUES ( ?k ) { ( resource:Lemnos ) ( resource:farmer ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3044918
P106
Q502895
USER
Which person has career as member of the French National Assembly ?
(c(Q502895),P106,Q3044918)
action filter_type
action find_reverse
entity Q3044918
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q3044918']
SELECT DISTINCT ?q WHERE { ?q property:P106 resource:Q3044918 . ?q rdf:type ontology:Q502895 }
member of the French National Assembly
action filter_type
action find_reverse
entity member of the French National Assembly
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the French\xa0National Assembly']
SELECT DISTINCT ?q WHERE { ?q property:occupation resource:member_of_the_French National_Assembly . ?q rdf:type ontology:common_name }
[]
common name
Q3085896
SYSTEM
François Thibault de Ménonville
Q3085896
(c(Q502895),P106,Q3044918)
action filter_type
action find_reverse
entity Q3044918
relation P106
type Q502895
[ANSWER] has career as member of the French National Assembly
[{'concept': 'Q502895'}, 'P106', 'Q3044918']
SELECT DISTINCT ?q WHERE { ?q property:P106 resource:Q3044918 . ?q rdf:type ontology:Q502895 }
François Thibault de Ménonville
François Thibault de Ménonville has career as member of the French National Assembly
François Thibault de Ménonville
action filter_type
action find_reverse
entity member of the French National Assembly
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the French\xa0National Assembly']
SELECT DISTINCT ?q WHERE { ?q property:occupation resource:member_of_the_French National_Assembly . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q316070
P674
Q2342494
USER
How many collectables have the character Fletcher Christian ?
(c(Q2342494),P674,Q316070)
action count
action filter_type
action find_reverse
entity Q316070
relation P674
type Q2342494
[{'concept': 'Q2342494'}, 'P674', 'Q316070']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:P674 resource:Q316070 . ?t rdf:type ontology:Q2342494 }
Fletcher Christian
action count
action filter_type
action find_reverse
entity Fletcher Christian
relation characters
type collectable
[{'concept': 'collectable'}, 'characters', 'Fletcher Christian']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:characters resource:Fletcher_Christian . ?t rdf:type ontology:collectable }
[]
collectable
SYSTEM
1
Q1765386
(c(Q2342494),P674,Q316070)
action count
action filter_type
action find_reverse
entity Q316070
relation P674
type Q2342494
[ANSWER]
[{'concept': 'Q2342494'}, 'P674', 'Q316070']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:P674 resource:Q316070 . ?t rdf:type ontology:Q2342494 }
The Mutineers of the Bounty
1
action count
action filter_type
action find_reverse
entity Fletcher Christian
relation characters
type collectable
[{'concept': 'collectable'}, 'characters', 'Fletcher Christian']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:characters resource:Fletcher_Christian . ?t rdf:type ontology:collectable }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q11204 Q1307214 Q12737077
USER
Which occupations are appointed by around 1 legislatures and forms of government ?
(c(Q12737077),P748,c(Q11204)|c(Q1307214))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?o ) WHERE { { ?j property:P748 ?a . ?j rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q11204 } UNION { ?a rdf:type ontology:Q1307214 . ?j rdf:type ontology:Q12737077 . ?j property:P748 ?a } } GROUP BY ?j } . FILTER ( ?o = 1 ) }
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type form of government
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?o ) WHERE { { ?j property:appointed_by ?a . ?j rdf:type ontology:occupation . ?a rdf:type ontology:legislature } UNION { ?a rdf:type ontology:form_of_government . ?j rdf:type ontology:occupation . ?j property:appointed_by ?a } } GROUP BY ?j } . FILTER ( ?o = 1 ) }
[]
legislature form of government occupation
Q655407 Q4122271 Q26000995
SYSTEM
President of the People's Republic of China, Premier of the People's Republic of China, President of the Parliament of Catalonia
Q11793630 Q1355456 Q1507619 Q910308 Q1753754 Q943379 Q655407 Q596123 Q583809 Q1043568 Q2962001 Q866680 Q26000995 Q213107 Q4122271 Q162754 Q217217 Q1281611 Q1752225 Q687908
(c(Q12737077),P748,c(Q11204)|c(Q1307214))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
value 1
[ANSWERS] are appointed by around 1 legislatures and forms of government
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?o ) WHERE { { ?j property:P748 ?a . ?j rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q11204 } UNION { ?a rdf:type ontology:Q1307214 . ?j rdf:type ontology:Q12737077 . ?j property:P748 ?a } } GROUP BY ?j } . FILTER ( ?o = 1 ) }
governor of national banks of Serbia and Yugoslavia Lord Chamberlain Deputy Prime Minister of the United Kingdom Lord Privy Seal Master of the Rolls Lord President of the Council President of the People's Republic of China president of Bangladesh Solicitor General for England and Wales Prime Minister of Vietnam Chief of the Defence Staff President of Vietnam President of the Parliament of Catalonia Prime Minister of Belgium Premier of the People's Republic of China Chancellor of the Duchy of Lancaster Lord Chancellor Lieutenant Governor of Jersey Lord Lieutenant of Ireland Lord Chief Justice of England and Wales
President of the People's Republic of China, Premier of the People's Republic of China and President of the Parliament of Catalonia are appointed by around 1 legislatures and forms of government
President of the People's Republic of China Premier of the People's Republic of China President of the Parliament of Catalonia
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type form of government
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?o ) WHERE { { ?j property:appointed_by ?a . ?j rdf:type ontology:occupation . ?a rdf:type ontology:legislature } UNION { ?a rdf:type ontology:form_of_government . ?j rdf:type ontology:occupation . ?j property:appointed_by ?a } } GROUP BY ?j } . FILTER ( ?o = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2054338 Q3291832
P19 P937
Q56061
USER
Which administrative territories are the locations where Marie-Françoise Pérol-Dumont worked or are the places of birth of Benedetto Caliari ?
OR((Q3291832,P937,c(Q56061)), (Q2054338,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3291832
relation P937
action find
entity Q2054338
relation P19
type Q56061
{'OR': [['Q3291832', 'P937', {'concept': 'Q56061'}], ['Q2054338', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q3291832 property:P937 ?z } UNION { resource:Q2054338 property:P19 ?z } } . ?z rdf:type ontology:Q56061 }
Benedetto Caliari Marie-Françoise Pérol-Dumont
action filter_type
action union
action find
entity Marie-Françoise Pérol-Dumont
relation work location
action find
entity Benedetto Caliari
relation place of birth
type administrative territorial entity
{'OR': [['Marie-Françoise Pérol-Dumont', 'work location', {'concept': 'administrative territorial entity'}], ['Benedetto Caliari', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Marie-Françoise_Pérol-Dumont property:work_location ?z } UNION { resource:Benedetto_Caliari property:place_of_birth ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2028 Q90
SYSTEM
Verona, Paris
Q2028 Q90
OR((Q3291832,P937,c(Q56061)), (Q2054338,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3291832
relation P937
action find
entity Q2054338
relation P19
type Q56061
[ANSWERS] are the locations where Marie-Françoise Pérol-Dumont worked or are the places of birth of Benedetto Caliari
{'OR': [['Q3291832', 'P937', {'concept': 'Q56061'}], ['Q2054338', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q3291832 property:P937 ?z } UNION { resource:Q2054338 property:P19 ?z } } . ?z rdf:type ontology:Q56061 }
Verona Paris
Verona and Paris are the locations where Marie-Françoise Pérol-Dumont worked or are the places of birth of Benedetto Caliari
Verona Paris
action filter_type
action union
action find
entity Marie-Françoise Pérol-Dumont
relation work location
action find
entity Benedetto Caliari
relation place of birth
type administrative territorial entity
{'OR': [['Marie-Françoise Pérol-Dumont', 'work location', {'concept': 'administrative territorial entity'}], ['Benedetto Caliari', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Marie-Françoise_Pérol-Dumont property:work_location ?z } UNION { resource:Benedetto_Caliari property:place_of_birth ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2028
P551
Q460998
USER
Who lives in that administrative territory ?
(c(Q460998),P551,Q2028)
action filter_type
action find_reverse
entity Q2028
relation P551
type Q460998
[{'concept': 'Q460998'}, 'P551', 'Q2028']
SELECT DISTINCT ?f WHERE { ?f property:P551 resource:Q2028 . ?f rdf:type ontology:Q460998 }
Verona
action filter_type
action find_reverse
entity Verona
relation residence
type character in Romeo and Juliet
[{'concept': 'character in Romeo and Juliet'}, 'residence', 'Verona']
SELECT DISTINCT ?f WHERE { ?f property:residence resource:Verona . ?f rdf:type ontology:character_in_Romeo_and_Juliet }
[]
character in Romeo and Juliet
Clarification for simple ques.
Q2028
SYSTEM
Did you mean Verona ?
Q2028 Q90
(c(Q460998),P551,Q2028) (c(Q460998),P551,Q90)
[ANSWER]
[{'concept': 'Q460998'}, 'P551', 'Q2028'] [{'concept': 'Q460998'}, 'P551', 'Q90']
SELECT DISTINCT ?f WHERE { ?f property:P551 resource:Q2028 . ?f rdf:type ontology:Q460998 }
Verona Paris
Did you mean Verona ?
Verona
[{'concept': 'character in Romeo and Juliet'}, 'residence', 'Verona'] [{'concept': 'character in Romeo and Juliet'}, 'residence', 'Paris']
SELECT DISTINCT ?f WHERE { ?f property:residence resource:Verona . ?f rdf:type ontology:character_in_Romeo_and_Juliet }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q460998),P551,Q2028)
[{'concept': 'Q460998'}, 'P551', 'Q2028']
[{'concept': 'character in Romeo and Juliet'}, 'residence', 'Verona']
[]
Q673361
SYSTEM
Romeo
Q673361
(c(Q460998),P551,Q2028)
action filter_type
action find_reverse
entity Q2028
relation P551
type Q460998
[ANSWER] lives in that administrative territory
[{'concept': 'Q460998'}, 'P551', 'Q2028']
SELECT DISTINCT ?f WHERE { ?f property:P551 resource:Q2028 . ?f rdf:type ontology:Q460998 }
Romeo
Romeo lives in that administrative territory
Romeo
action filter_type
action find_reverse
entity Verona
relation residence
type character in Romeo and Juliet
[{'concept': 'character in Romeo and Juliet'}, 'residence', 'Verona']
SELECT DISTINCT ?f WHERE { ?f property:residence resource:Verona . ?f rdf:type ontology:character_in_Romeo_and_Juliet }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q673361
P26
Q460998
USER
Who is the spouse of that one ?
(c(Q460998),P26,Q673361)
action filter_type
action find
entity Q673361
relation P26
type Q460998
[{'concept': 'Q460998'}, 'P26', 'Q673361']
SELECT DISTINCT ?i WHERE { resource:Q673361 property:P26 ?i . ?i rdf:type ontology:Q460998 }
Romeo
action filter_type
action find
entity Romeo
relation spouse
type character in Romeo and Juliet
[{'concept': 'character in Romeo and Juliet'}, 'spouse', 'Romeo']
SELECT DISTINCT ?i WHERE { resource:Romeo property:spouse ?i . ?i rdf:type ontology:character_in_Romeo_and_Juliet }
[]
character in Romeo and Juliet
Q1092632
SYSTEM
Juliet
Q1092632
(c(Q460998),P26,Q673361)
action filter_type
action find
entity Q673361
relation P26
type Q460998
The spouse of that one is [ANSWER]
[{'concept': 'Q460998'}, 'P26', 'Q673361']
SELECT DISTINCT ?i WHERE { resource:Q673361 property:P26 ?i . ?i rdf:type ontology:Q460998 }
Juliet
The spouse of that one is Juliet
Juliet
action filter_type
action find
entity Romeo
relation spouse
type character in Romeo and Juliet
[{'concept': 'character in Romeo and Juliet'}, 'spouse', 'Romeo']
SELECT DISTINCT ?i WHERE { resource:Romeo property:spouse ?i . ?i rdf:type ontology:character_in_Romeo_and_Juliet }
[]