Simple Question (Direct)
Simple Question
Q1579785
P39
Q12737077
USER
Which occupation was a position for which Hans Gerhard was appointed ?
(Q1579785,P39,c(Q12737077))
action filter_type
action find
entity Q1579785
relation P39
type Q12737077
['Q1579785', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1579785 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Hans Gerhard
action filter_type
action find
entity Hans Gerhard
relation position held
type occupation
['Hans Gerhard', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Hans_Gerhard property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q17781726
SYSTEM
member of the Landtag of North Rhine-Westphalia
Q17781726
(Q1579785,P39,c(Q12737077))
action filter_type
action find
entity Q1579785
relation P39
type Q12737077
A [ANSWER] was a position for which Hans Gerhard was appointed
['Q1579785', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1579785 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
member of the Landtag of North Rhine-Westphalia
A member of the Landtag of North Rhine-Westphalia was a position for which Hans Gerhard was appointed
member of the Landtag of North Rhine-Westphalia
action filter_type
action find
entity Hans Gerhard
relation position held
type occupation
['Hans Gerhard', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Hans_Gerhard property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17781726
P361
Q1752346
USER
What is that occupation a part of ?
(Q17781726,P361,c(Q1752346))
action filter_type
action find
entity Q17781726
relation P361
type Q1752346
['Q17781726', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?s WHERE { resource:Q17781726 property:P361 ?s . ?s rdf:type ontology:Q1752346 }
member of the Landtag of North Rhine-Westphalia
action filter_type
action find
entity member of the Landtag of North Rhine-Westphalia
relation part of
type assembly
['member of the Landtag of North Rhine-Westphalia', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?s WHERE { resource:member_of_the_Landtag_of_North_Rhine-Westphalia property:part_of ?s . ?s rdf:type ontology:assembly }
[]
assembly
Q571436
SYSTEM
Landtag of North Rhine-Westphalia
Q571436
(Q17781726,P361,c(Q1752346))
action filter_type
action find
entity Q17781726
relation P361
type Q1752346
That occupation a part of is the [ANSWER]
['Q17781726', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?s WHERE { resource:Q17781726 property:P361 ?s . ?s rdf:type ontology:Q1752346 }
Landtag of North Rhine-Westphalia
That occupation a part of is the Landtag of North Rhine-Westphalia
Landtag of North Rhine-Westphalia
action filter_type
action find
entity member of the Landtag of North Rhine-Westphalia
relation part of
type assembly
['member of the Landtag of North Rhine-Westphalia', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?s WHERE { resource:member_of_the_Landtag_of_North_Rhine-Westphalia property:part_of ?s . ?s rdf:type ontology:assembly }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P361
Q1752346 Q7210356
USER
Which assemblies are around the same number of political organizations a component of as that assembly ?
(c(Q7210356),P361,c(Q1752346))
action approx
action find_reverse_tuple_counts
relation P361
type Q1752346
type Q7210356
action count
action filter_type
action find
entity Q571436
relation P361
type Q1752346
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { ?r rdf:type ontology:Q1752346 . resource:Q571436 property:P361 ?r } } . FILTER ( ?d = ?k ) . { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?d ) WHERE { ?f property:P361 ?c . ?c rdf:type ontology:Q1752346 . ?f rdf:type ontology:Q7210356 } GROUP BY ?c } }
action approx
action find_reverse_tuple_counts
relation part of
type assembly
type political organization
action count
action filter_type
action find
entity Landtag of North Rhine-Westphalia
relation part of
type assembly
[{'concept': 'political organization'}, 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { ?r rdf:type ontology:assembly . resource:Landtag_of_North_Rhine-Westphalia property:part_of ?r } } . FILTER ( ?d = ?k ) . { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?d ) WHERE { ?f property:part_of ?c . ?c rdf:type ontology:assembly . ?f rdf:type ontology:political_organization } GROUP BY ?c } }
[]
assembly political organization
Q154797 Q209151 Q157638
SYSTEM
Bundestag of Germany, Folketing, Frankfurt Parliament
Q3154693 Q1253647 Q109016 Q896075 Q2511660 Q949699 Q1422275 Q3365524 Q715641 Q2635070 Q2584535 Q676484 Q1258164 Q14759322 Q1368318 Q648716 Q502026 Q1572486 Q206171 Q636377 Q4345413 Q1813360 Q6518214 Q510511 Q650248 Q314690 Q1599346 Q1398920 Q3251036 Q1969527 Q641439 Q1817866 Q319994 Q1450753 Q2994116 Q3564203 Q2097101 Q2647159 Q884824 Q1577158 Q1585014 Q154797 Q19758733 Q1969591 Q1368588 Q382118 Q11010 Q1112381 Q7252745 Q1807513 Q1798607 Q1371388 Q640859 Q1188525 Q230003 Q371576 Q7285832 Q2185780 Q1969585 Q1117578 Q1969587 Q2016884 Q1139204 Q2011165 Q4345419 Q1968458 Q1415847 Q1848595 Q2119357 Q740564 Q1517231 Q2347172 Q3365530 Q1972029 Q1417210 Q643412 Q2739604 Q820697 Q378605 Q1130737 Q583157 Q1292 Q571436 Q35749 Q521764 Q720753 Q1484825 Q12041660 Q1542985 Q209151 Q1520966 Q1284236 Q157638 Q5531805 Q219825 Q1138299 Q884829 Q1357543 Q1288169 Q882738 Q1077701 Q321246 Q2665089 Q1280751 Q3365552 Q1135960 Q775767 Q7063612 Q1650523 Q3896143 Q817979 Q326465 Q1969569 Q714698 Q14552853 Q339033 Q697775 Q20992117 Q684719 Q3365546 Q160208 Q1968468 Q260372 Q742110 Q7138943 Q1501988 Q317147 Q878525 Q1853235 Q859658 Q449304 Q17014622 Q6682043 Q654504 Q646190 Q639704 Q1320418 Q475689 Q1973075 Q15150880 Q822919 Q455697 Q2053647 Q219692 Q9300937 Q637829 Q5339025 Q133396 Q122635 Q3246027 Q2444341 Q477089 Q1760847 Q667464 Q15304628 Q632552 Q555809 Q1769673 Q189445
(c(Q7210356),P361,c(Q1752346))
action approx
action find_reverse_tuple_counts
relation P361
type Q1752346
type Q7210356
action count
action filter_type
action find
entity Q571436
relation P361
type Q1752346
[ANSWERS] are around the same number of political organizations a component of as that assembly
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { ?r rdf:type ontology:Q1752346 . resource:Q571436 property:P361 ?r } } . FILTER ( ?d = ?k ) . { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?d ) WHERE { ?f property:P361 ?c . ?c rdf:type ontology:Q1752346 . ?f rdf:type ontology:Q7210356 } GROUP BY ?c } }
city council Parliament of Grenada Parliament of Norway Landtag of Thuringia Congress of Paraguay National Congress of Brasil Parliament of Lebanon Parliament of Tasmania State Duma National Assembly Parliament of Egypt National Assembly Assembly of the Republic of Macedonia Senate (Equatorial Guinea) National Assembly National Assembly National Assembly Parliament of The Bahamas Scottish Parliament Hamburg Parliament Parliament of Gabon Parliament of Romania Legislative Assembly of Queensland Landtag of Hesse Landtag of Prussia Landtag of Rhineland-Palatinate National Assembly General council Legislature of New Brunswick National Assembly Landtag of Bavaria Parliament of Malta Landtag of Lower Saxony Parliament of Sri Lanka Queensland Legislative Council Federal Assembly States-Provincial municipal council (France) Landtag of Saxony National Assembly National Assembly of Venezuela Bundestag of Germany departmental council National Assembly National Assembly of Panama Parliament of Australia Parliament of the United Kingdom House of Representatives Provisional Legislative Council Parliament of Ghana National Assembly of Belarus States General Abgeordnetenhaus of Berlin National Assembly Lok Sabha Parliament of Croatia Rajasthan Legislative Assembly Parliament of South Africa National Assembly Italian Parliament National Assembly Oireachtas of the Irish Free State National Council of Slovakia Supreme Assembly Parliament of Lesotho Plurinational Legislative Assembly National Congress of Honduras Assembly of the Republic House of Nationalities Assembly of the Republic Parliament of Singapore Parliament of the Czech Republic Parliament of the Province of Canada Parliament of Nauru Parliament of Georgia Parliament of Finland Parliament of Great Britain Parliament of Jordan Islamic Consultative Assembly Parliament of England regional council Flemish Parliament Landtag of North Rhine-Westphalia parliament Landtag of Brandenburg National Assembly of People's Power Congress of the Union National Assembly of the Czechoslovak Republic Congress of the Philippines Folketing New Zealand Parliament Congress of Colombia Frankfurt Parliament General Council of Bucharest National Convention National Assembly Landtag of Saxony-Anhalt Congress of the Republic of Peru Slovenian Parliament Landtag of Mecklenburg-Vorpommern Regional Council in Italy Reichstag Parliament of Pakistan Parliament of Antigua and Barbuda Parliament of the Kingdom of Sardinia Parliament of Albania Chamber of People's Representatives Nottingham City Council Parliament of Scotland Parliament of Nepal Grand and General Council Supreme Soviet of the Soviet Union National Assembly Supreme People's Assembly Shiga prefectural assembly Palestinian Legislative Council Imperial Council Union Parliament Federal Assembly Parliament of the Kingdom of Italy Reichstag National Congress of Chile Landtag of Saarland Parliament of Haiti Parliament of Trinidad and Tobago General Assembly of Uruguay Bürgerschaft of Bremen Reichstag National Assembly National Assembly Landtag of Schleswig-Holstein municipal council Los Angeles Common Council National Assembly Argentine National Congress National Assembly Parliament of Cambodia Parliament of Canada Council of Representatives of Iraq Legislature of Quebec Saeima Landtag of Baden-Württemberg Parliament of Southern Ireland Cortes Generales Parliament of Northern Ireland Reichstag Edmonton City Council Knesset Parliament of Jamaica General Assembly of Nova Scotia Toronto City Council Hellenic Parliament National Assembly Diet of Galicia and Lodomeria parliament of a Canadian province or territory French Parliament Parliament of the Republic of Moldova National Assembly bicameral legislature
Bundestag of Germany, Folketing and Frankfurt Parliament are around the same number of political organizations a component of as that assembly
Bundestag of Germany Folketing Frankfurt Parliament
action approx
action find_reverse_tuple_counts
relation part of
type assembly
type political organization
action count
action filter_type
action find
entity Landtag of North Rhine-Westphalia
relation part of
type assembly
[{'concept': 'political organization'}, 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { ?r rdf:type ontology:assembly . resource:Landtag_of_North_Rhine-Westphalia property:part_of ?r } } . FILTER ( ?d = ?k ) . { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?d ) WHERE { ?f property:part_of ?c . ?c rdf:type ontology:assembly . ?f rdf:type ontology:political_organization } GROUP BY ?c } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q154797 Q209151 Q157638
P488
Q502895
USER
Who were the chair of Bundestag of Germany, Folketing and Frankfurt Parliament ?
(Q154797,P488,c(Q502895)) (Q209151,P488,c(Q502895)) (Q157638,P488,c(Q502895))
action union
action filter_type
action find
entity Q154797
relation P488
type Q502895
action filter_type
action find
entity Q209151
relation P488
type Q502895
action filter_type
action find
entity Q157638
relation P488
type Q502895
['Q154797', 'P488', {'concept': 'Q502895'}] ['Q209151', 'P488', {'concept': 'Q502895'}] ['Q157638', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { resource:Q209151 property:P488 ?n . ?n rdf:type ontology:Q502895 } UNION { resource:Q154797 property:P488 ?n . ?n rdf:type ontology:Q502895 } }
Bundestag of Germany Folketing Frankfurt Parliament
action union
action filter_type
action find
entity Bundestag of Germany
relation chairperson
type common name
action filter_type
action find
entity Folketing
relation chairperson
type common name
action filter_type
action find
entity Frankfurt Parliament
relation chairperson
type common name
['Bundestag of Germany', 'chairperson', {'concept': 'common name'}] ['Folketing', 'chairperson', {'concept': 'common name'}] ['Frankfurt Parliament', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { resource:Folketing property:chairperson ?n . ?n rdf:type ontology:common_name } UNION { resource:Bundestag_of_Germany property:chairperson ?n . ?n rdf:type ontology:common_name } }
[]
common name
Q2569 Q57474 Q454669
SYSTEM
Karl Carstens, Norbert Lammert, Richard Stücklen
Q57474 Q2569 Q62703 Q454669 Q66286 Q470285 Q214060 Q78425 Q70058 Q66138 Q65526 Q66447 Q1937560 Q272924 Q64856 Q65230
(Q154797,P488,c(Q502895)) (Q209151,P488,c(Q502895)) (Q157638,P488,c(Q502895))
action union
action filter_type
action find
entity Q154797
relation P488
type Q502895
action filter_type
action find
entity Q209151
relation P488
type Q502895
action filter_type
action find
entity Q157638
relation P488
type Q502895
The chair of Bundestag of Germany , Folketing and Frankfurt Parliament were elected [ANSWERS]
['Q154797', 'P488', {'concept': 'Q502895'}] ['Q209151', 'P488', {'concept': 'Q502895'}] ['Q157638', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { resource:Q209151 property:P488 ?n . ?n rdf:type ontology:Q502895 } UNION { resource:Q154797 property:P488 ?n . ?n rdf:type ontology:Q502895 } }
Norbert Lammert Karl Carstens Wolfgang Thierse Richard Stücklen Rita Süssmuth Rainer Barzel Philipp Jenninger Hermann Ehlers Erich Köhler Annemarie Renger Kai-Uwe von Hassel Eugen Gerstenmaier Mogens Lykketoft Pia Kjærsgaard Eduard von Simson Heinrich von Gagern
The chair of Bundestag of Germany , Folketing and Frankfurt Parliament were elected Karl Carstens, Norbert Lammert and Richard Stücklen
Karl Carstens Norbert Lammert Richard Stücklen
action union
action filter_type
action find
entity Bundestag of Germany
relation chairperson
type common name
action filter_type
action find
entity Folketing
relation chairperson
type common name
action filter_type
action find
entity Frankfurt Parliament
relation chairperson
type common name
['Bundestag of Germany', 'chairperson', {'concept': 'common name'}] ['Folketing', 'chairperson', {'concept': 'common name'}] ['Frankfurt Parliament', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { resource:Folketing property:chairperson ?n . ?n rdf:type ontology:common_name } UNION { resource:Bundestag_of_Germany property:chairperson ?n . ?n rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2569 Q57474 Q454669
P106
Q12737077
USER
Which occupations have those people as his/her 's career ?
(Q2569,P106,c(Q12737077)) (Q57474,P106,c(Q12737077)) (Q454669,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q2569', 'P106', {'concept': 'Q12737077'}] ['Q57474', 'P106', {'concept': 'Q12737077'}] ['Q454669', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?c property:P106 ?z . ?z rdf:type ontology:Q12737077 . VALUES ( ?c ) { ( resource:Q57474 ) ( resource:Q2569 ) ( resource:Q62703 ) } }
Karl Carstens Norbert Lammert Richard Stücklen
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Karl Carstens', 'occupation', {'concept': 'occupation'}] ['Norbert Lammert', 'occupation', {'concept': 'occupation'}] ['Richard Stücklen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?c property:occupation ?z . ?z rdf:type ontology:occupation . VALUES ( ?c ) { ( resource:Norbert_Lammert ) ( resource:Karl_Carstens ) ( resource:Wolfgang_Thierse ) } }
[]
occupation
Q193391 Q82955 Q82955
SYSTEM
diplomat for 1st, politician for 2nd, 3rd
Q193391 Q82955 Q82955 Q82955
(Q2569,P106,c(Q12737077)) (Q57474,P106,c(Q12737077)) (Q454669,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
[ANSWERS]
['Q2569', 'P106', {'concept': 'Q12737077'}] ['Q57474', 'P106', {'concept': 'Q12737077'}] ['Q454669', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?c property:P106 ?z . ?z rdf:type ontology:Q12737077 . VALUES ( ?c ) { ( resource:Q57474 ) ( resource:Q2569 ) ( resource:Q62703 ) } }
diplomat politician politician politician
Diplomat, politician and politician have those people as his/her 's career
diplomat politician politician
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Karl Carstens', 'occupation', {'concept': 'occupation'}] ['Norbert Lammert', 'occupation', {'concept': 'occupation'}] ['Richard Stücklen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?c property:occupation ?z . ?z rdf:type ontology:occupation . VALUES ( ?c ) { ( resource:Norbert_Lammert ) ( resource:Karl_Carstens ) ( resource:Wolfgang_Thierse ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q82955
P425
Q3769299
USER
Who is associated with the field of occupation that one ?
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?h WHERE { resource:Q82955 property:P425 ?h . ?h rdf:type ontology:Q3769299 }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?h WHERE { resource:politician property:field_of_this_occupation ?h . ?h rdf:type ontology:human_behaviour }
[]
human behaviour
Clarification for simple ques.
Q193391
SYSTEM
Did you mean diplomat ?
Q193391 Q82955 Q82955
(Q193391,P425,c(Q3769299)) (Q82955,P425,c(Q3769299)) (Q82955,P425,c(Q3769299))
[ANSWER]
['Q193391', 'P425', {'concept': 'Q3769299'}] ['Q82955', 'P425', {'concept': 'Q3769299'}] ['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?h WHERE { resource:Q82955 property:P425 ?h . ?h rdf:type ontology:Q3769299 }
diplomat politician politician
Did you mean diplomat ?
diplomat
['diplomat', 'field of this occupation', {'concept': 'human behaviour'}] ['politician', 'field of this occupation', {'concept': 'human behaviour'}] ['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?h WHERE { resource:politician property:field_of_this_occupation ?h . ?h rdf:type ontology:human_behaviour }
[]
Simple Question (Coreferenced)
USER
No, I meant politician. Could you tell me the answer for that?
(Q82955,P425,c(Q3769299))
Q82955
['Q82955', 'P425', {'concept': 'Q3769299'}]
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
[]
Q7163
SYSTEM
politics
Q7163
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
That [ANSWER] is associated with the field of occupation that one
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?h WHERE { resource:Q82955 property:P425 ?h . ?h rdf:type ontology:Q3769299 }
politics
That politics is associated with the field of occupation that one
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?h WHERE { resource:politician property:field_of_this_occupation ?h . ?h rdf:type ontology:human_behaviour }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2569
P607
Q198
USER
Which battle did Karl Carstens take part in ?
(Q2569,P607,c(Q198))
action filter_type
action find
entity Q2569
relation P607
type Q198
['Q2569', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?f WHERE { resource:Q2569 property:P607 ?f . ?f rdf:type ontology:Q198 }
Karl Carstens
action filter_type
action find
entity Karl Carstens
relation conflict
type war
['Karl Carstens', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?f WHERE { resource:Karl_Carstens property:conflict ?f . ?f rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q2569,P607,c(Q198))
action filter_type
action find
entity Q2569
relation P607
type Q198
Karl Carstens took part in [ANSWER]
['Q2569', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?f WHERE { resource:Q2569 property:P607 ?f . ?f rdf:type ontology:Q198 }
World War II
Karl Carstens took part in World War II
World War II
action filter_type
action find
entity Karl Carstens
relation conflict
type war
['Karl Carstens', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?f WHERE { resource:Karl_Carstens property:conflict ?f . ?f rdf:type ontology:war }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3848501
Q198
USER
And also tell me about Mario de Bernardi?
(Q3848501,P607,c(Q198))
action filter_type
action find
entity Q3848501
relation P607
type Q198
['Q3848501', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?u WHERE { resource:Q3848501 property:P607 ?u . ?u rdf:type ontology:Q198 }
Mario de Bernardi
action filter_type
action find
entity Mario de Bernardi
relation conflict
type war
['Mario de Bernardi', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?u WHERE { resource:Mario_de_Bernardi property:conflict ?u . ?u rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q3848501,P607,c(Q198))
action filter_type
action find
entity Q3848501
relation P607
type Q198
[ANSWER]
['Q3848501', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?u WHERE { resource:Q3848501 property:P607 ?u . ?u rdf:type ontology:Q198 }
World War I
World War I
action filter_type
action find
entity Mario de Bernardi
relation conflict
type war
['Mario de Bernardi', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?u WHERE { resource:Mario_de_Bernardi property:conflict ?u . ?u rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3848501
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q361,P27,c(Q15617994))
action filter_type
action find
entity Q3848501
relation P27
type Q15617994
['Q361', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q3848501 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Mario de Bernardi
action filter_type
action find
entity Mario de Bernardi
relation country of citizenship
type designation for an administrative territorial entity
['World War I', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Mario_de_Bernardi property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q361,P27,c(Q15617994))
action filter_type
action find
entity Q3848501
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q361', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q3848501 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Italy
That person belongs to the Italy
Italy
action filter_type
action find
entity Mario de Bernardi
relation country of citizenship
type designation for an administrative territorial entity
['World War I', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Mario_de_Bernardi property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q362
P509
Q502895
USER
Which people had World War II as cause of death ?
(c(Q502895),P509,Q362)
action filter_type
action find_reverse
entity Q362
relation P509
type Q502895
[{'concept': 'Q502895'}, 'P509', 'Q362']
SELECT DISTINCT ?b WHERE { ?b property:P509 resource:Q362 . ?b rdf:type ontology:Q502895 }
World War II
action filter_type
action find_reverse
entity World War II
relation cause of death
type common name
[{'concept': 'common name'}, 'cause of death', 'World War II']
SELECT DISTINCT ?b WHERE { ?b property:cause_of_death resource:World_War_II . ?b rdf:type ontology:common_name }
[]
common name
Q20727330 Q705617
SYSTEM
Maurice Poedts, Chōmo Hanashiro
Q20727330 Q705617
(c(Q502895),P509,Q362)
action filter_type
action find_reverse
entity Q362
relation P509
type Q502895
[ANSWERS] had World War II as cause of death
[{'concept': 'Q502895'}, 'P509', 'Q362']
SELECT DISTINCT ?b WHERE { ?b property:P509 resource:Q362 . ?b rdf:type ontology:Q502895 }
Maurice Poedts Chōmo Hanashiro
Maurice Poedts and Chōmo Hanashiro had World War II as cause of death
Maurice Poedts Chōmo Hanashiro
action filter_type
action find_reverse
entity World War II
relation cause of death
type common name
[{'concept': 'common name'}, 'cause of death', 'World War II']
SELECT DISTINCT ?b WHERE { ?b property:cause_of_death resource:World_War_II . ?b rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q20727330
P410
Q12737077
USER
Which occupation was the military rank conferred upon that person ?
(Q20727330,P410,c(Q12737077))
action filter_type
action find
entity Q20727330
relation P410
type Q12737077
['Q20727330', 'P410', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q20727330 property:P410 ?i . ?i rdf:type ontology:Q12737077 }
Maurice Poedts
action filter_type
action find
entity Maurice Poedts
relation military rank
type occupation
['Maurice Poedts', 'military rank', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Maurice_Poedts property:military_rank ?i . ?i rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q20727330
SYSTEM
Did you mean Maurice Poedts ?
Q20727330 Q705617
(Q20727330,P410,c(Q12737077)) (Q705617,P410,c(Q12737077))
[ANSWER]
['Q20727330', 'P410', {'concept': 'Q12737077'}] ['Q705617', 'P410', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q20727330 property:P410 ?i . ?i rdf:type ontology:Q12737077 }
Maurice Poedts Chōmo Hanashiro
Did you mean Maurice Poedts ?
Maurice Poedts
['Maurice Poedts', 'military rank', {'concept': 'occupation'}] ['Chōmo Hanashiro', 'military rank', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Maurice_Poedts property:military_rank ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
Yes
(Q20727330,P410,c(Q12737077))
['Q20727330', 'P410', {'concept': 'Q12737077'}]
['Maurice Poedts', 'military rank', {'concept': 'occupation'}]
[]
Q4991371
SYSTEM
soldier
Q4991371
(Q20727330,P410,c(Q12737077))
action filter_type
action find
entity Q20727330
relation P410
type Q12737077
[ANSWER] was the military rank conferred upon that person
['Q20727330', 'P410', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q20727330 property:P410 ?i . ?i rdf:type ontology:Q12737077 }
soldier
Soldier was the military rank conferred upon that person
soldier
action filter_type
action find
entity Maurice Poedts
relation military rank
type occupation
['Maurice Poedts', 'military rank', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Maurice_Poedts property:military_rank ?i . ?i rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of person who are the patron saints of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?v ) WHERE { ?y rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q502895 . ?y property:P417 ?x } GROUP BY ?x } } . FILTER ( ?s = ?q ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:P417 ?p . ?p rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?p } }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?v ) WHERE { ?y rdf:type ontology:occupation . ?x rdf:type ontology:common_name . ?y property:patron_saint ?x } GROUP BY ?x } } . FILTER ( ?s = ?q ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:patron_saint ?p . ?p rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?p } }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the names of person who is the patron saints of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?v ) WHERE { ?y rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q502895 . ?y property:P417 ?x } GROUP BY ?x } } . FILTER ( ?s = ?q ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:P417 ?p . ?p rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?p } }
Catherine of Alexandria
Catherine of Alexandria is the names of person who is the patron saints of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?v ) WHERE { ?y rdf:type ontology:occupation . ?x rdf:type ontology:common_name . ?y property:patron_saint ?x } GROUP BY ?x } } . FILTER ( ?s = ?q ) . { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:patron_saint ?p . ?p rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?p } }
[]