Simple Question (Direct)
Simple Question
Q12873663
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Andreas Douzos ?
(Q12873663,P27,c(Q15617994))
action filter_type
action find
entity Q12873663
relation P27
type Q15617994
['Q12873663', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q12873663 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Andreas Douzos
action filter_type
action find
entity Andreas Douzos
relation country of citizenship
type designation for an administrative territorial entity
['Andreas Douzos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Andreas_Douzos property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q41
SYSTEM
Greece
Q41
(Q12873663,P27,c(Q15617994))
action filter_type
action find
entity Q12873663
relation P27
type Q15617994
[ANSWER]
['Q12873663', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q12873663 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Greece
Greece
action filter_type
action find
entity Andreas Douzos
relation country of citizenship
type designation for an administrative territorial entity
['Andreas Douzos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Andreas_Douzos property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12873663
P161
Q838948
USER
Which works of art do Andreas Douzos star in ?
(c(Q838948),P161,Q12873663)
action filter_type
action find_reverse
entity Q12873663
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q12873663']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q12873663 . ?a rdf:type ontology:Q838948 }
Andreas Douzos
action filter_type
action find_reverse
entity Andreas Douzos
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Andreas Douzos']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Andreas_Douzos . ?a rdf:type ontology:work_of_art }
[]
work of art
Q7108431 Q3024103 Q12878223
SYSTEM
Otan leipei i gata, Kiss the Girls, Istoria mias zois
Q12878223 Q7108431 Q3204455 Q16326761 Q15222639 Q3024103 Q7105492 Q5420485 Q2870277
(c(Q838948),P161,Q12873663)
action filter_type
action find_reverse
entity Q12873663
relation P161
type Q838948
[ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q12873663']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q12873663 . ?a rdf:type ontology:Q838948 }
Istoria mias zois Otan leipei i gata O Drakos A Matter of Earnestness Woe to the Young Kiss the Girls Osa kryvei i nychta Exo oi kleftes Fonazei o kleftis
Otan leipei i gata Kiss the Girls Istoria mias zois
action filter_type
action find_reverse
entity Andreas Douzos
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Andreas Douzos']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Andreas_Douzos . ?a rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q7108431 Q3024103 Q12878223
P57
Q502895
USER
Which people directed those works of art ?
(Q7108431,P57,c(Q502895)) (Q3024103,P57,c(Q502895)) (Q12878223,P57,c(Q502895))
action filter_type
action find
entity prev_answer
relation P57
type Q502895
['Q7108431', 'P57', {'concept': 'Q502895'}] ['Q3024103', 'P57', {'concept': 'Q502895'}] ['Q12878223', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?l property:P57 ?i . ?i rdf:type ontology:Q502895 . VALUES ( ?l ) { ( resource:Q12878223 ) ( resource:Q7108431 ) ( resource:Q3204455 ) } }
Otan leipei i gata Kiss the Girls Istoria mias zois
action filter_type
action find
entity prev_answer
relation director
type common name
['Otan leipei i gata', 'director', {'concept': 'common name'}] ['Kiss the Girls', 'director', {'concept': 'common name'}] ['Istoria mias zois', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?l property:director ?i . ?i rdf:type ontology:common_name . VALUES ( ?l ) { ( resource:Istoria_mias_zois ) ( resource:Otan_leipei_i_gata ) ( resource:O_Drakos ) } }
[]
common name
Q2840736 Q2976930 Q2976930
SYSTEM
Alekos Sakellarios for 1st, Giannis Dalianidis for 2nd, 3rd
Q2840736 Q2976930 Q2976930
(Q7108431,P57,c(Q502895)) (Q3024103,P57,c(Q502895)) (Q12878223,P57,c(Q502895))
action filter_type
action find
entity prev_answer
relation P57
type Q502895
[ANSWERS]
['Q7108431', 'P57', {'concept': 'Q502895'}] ['Q3024103', 'P57', {'concept': 'Q502895'}] ['Q12878223', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?l property:P57 ?i . ?i rdf:type ontology:Q502895 . VALUES ( ?l ) { ( resource:Q12878223 ) ( resource:Q7108431 ) ( resource:Q3204455 ) } }
Alekos Sakellarios Giannis Dalianidis Giannis Dalianidis
Alekos Sakellarios Giannis Dalianidis Giannis Dalianidis
action filter_type
action find
entity prev_answer
relation director
type common name
['Otan leipei i gata', 'director', {'concept': 'common name'}] ['Kiss the Girls', 'director', {'concept': 'common name'}] ['Istoria mias zois', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?l property:director ?i . ?i rdf:type ontology:common_name . VALUES ( ?l ) { ( resource:Istoria_mias_zois ) ( resource:Otan_leipei_i_gata ) ( resource:O_Drakos ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q41
P1376
Q56061
USER
Which administrative territories are the county seat for Greece ?
(c(Q56061),P1376,Q41)
action filter_type
action find_reverse
entity Q41
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q41']
SELECT DISTINCT ?b WHERE { ?b property:P1376 resource:Q41 . ?b rdf:type ontology:Q56061 }
Greece
action filter_type
action find_reverse
entity Greece
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Greece']
SELECT DISTINCT ?b WHERE { ?b property:capital_of resource:Greece . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1524 Q202337
SYSTEM
Athens, Nauplion
Q1524 Q202337
(c(Q56061),P1376,Q41)
action filter_type
action find_reverse
entity Q41
relation P1376
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P1376', 'Q41']
SELECT DISTINCT ?b WHERE { ?b property:P1376 resource:Q41 . ?b rdf:type ontology:Q56061 }
Athens Nauplion
Athens Nauplion
action filter_type
action find_reverse
entity Greece
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Greece']
SELECT DISTINCT ?b WHERE { ?b property:capital_of resource:Greece . ?b rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1524
P1071
Q7210356
USER
Which political organization has that administrative territory as its finally place of assembly ?
(c(Q7210356),P1071,Q1524)
action filter_type
action find_reverse
entity Q1524
relation P1071
type Q7210356
[{'concept': 'Q7210356'}, 'P1071', 'Q1524']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7210356 . ?g property:P1071 resource:Q1524 }
Athens
action filter_type
action find_reverse
entity Athens
relation location of final assembly
type political organization
[{'concept': 'political organization'}, 'location of final assembly', 'Athens']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_organization . ?g property:location_of_final_assembly resource:Athens }
[]
political organization
Clarification for simple ques.
Q202337
SYSTEM
Did you mean Nauplion ?
Q1524 Q202337
(c(Q7210356),P1071,Q1524) (c(Q7210356),P1071,Q202337)
[ANSWER]
[{'concept': 'Q7210356'}, 'P1071', 'Q1524'] [{'concept': 'Q7210356'}, 'P1071', 'Q202337']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7210356 . ?g property:P1071 resource:Q1524 }
Athens Nauplion
Did you mean Nauplion ?
Nauplion
[{'concept': 'political organization'}, 'location of final assembly', 'Athens'] [{'concept': 'political organization'}, 'location of final assembly', 'Nauplion']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_organization . ?g property:location_of_final_assembly resource:Athens }
[]
Simple Question (Coreferenced)
USER
No, I meant Athens. Could you tell me the answer for that?
(c(Q7210356),P1071,Q1524)
Q1524
[{'concept': 'Q7210356'}, 'P1071', 'Q1524']
[{'concept': 'political organization'}, 'location of final assembly', 'Athens']
[]
Q192254
SYSTEM
National Liberation Front
Q192254
(c(Q7210356),P1071,Q1524)
action filter_type
action find_reverse
entity Q1524
relation P1071
type Q7210356
[ANSWER]
[{'concept': 'Q7210356'}, 'P1071', 'Q1524']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q7210356 . ?g property:P1071 resource:Q1524 }
National Liberation Front
National Liberation Front
action filter_type
action find_reverse
entity Athens
relation location of final assembly
type political organization
[{'concept': 'political organization'}, 'location of final assembly', 'Athens']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_organization . ?g property:location_of_final_assembly resource:Athens }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P361
Q1752346 Q7210356
USER
How many political organizations are a component of less number of assemblies than that political organization ?
(c(Q7210356),P361,c(Q1752346))
action count
action less
action find_tuple_counts
relation P361
type Q7210356
type Q1752346
action count
action filter_type
action find_reverse
entity Q192254
relation P361
type Q7210356
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?e ) WHERE { ?b property:P361 ?u . ?b rdf:type ontology:Q7210356 . ?u rdf:type ontology:Q1752346 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P361 resource:Q192254 . ?t rdf:type ontology:Q7210356 } } . FILTER ( ?e < ?m ) }
action count
action less
action find_tuple_counts
relation part of
type political organization
type assembly
action count
action filter_type
action find_reverse
entity National Liberation Front
relation part of
type political organization
[{'concept': 'political organization'}, 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?e ) WHERE { ?b property:part_of ?u . ?b rdf:type ontology:political_organization . ?u rdf:type ontology:assembly } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:part_of resource:National_Liberation_Front . ?t rdf:type ontology:political_organization } } . FILTER ( ?e < ?m ) }
[]
assembly political organization
SYSTEM
190
Q5603049 Q5603048 Q1518193 Q2069252 Q7131032 Q7314640 Q1654268 Q7058484 Q5253276 Q119763 Q3935996 Q7551682 Q20643122 Q20643123 Q2632305 Q5684363 Q2179086 Q6904239 Q4245186 Q4824226 Q1076494 Q3366814 Q17183867 Q1952211 Q7551709 Q21405813 Q1450384 Q6064351 Q2482138 Q1558808 Q7314652 Q786791 Q6925156 Q6784247 Q5603011 Q780997 Q7972236 Q16825027 Q7129523 Q5255722 Q5255720 Q5255727 Q5255726 Q6879122 Q47729 Q6851933 Q895181 Q2277776 Q7303029 Q6625187 Q2246227 Q15980801 Q1781065 Q771914 Q286140 Q7551659 Q1922340 Q6540768 Q7921703 Q178216 Q7551542 Q11833539 Q4791317 Q1515182 Q6837512 Q2130137 Q83372 Q1470185 Q1408232 Q6016645 Q5255714 Q6508513 Q291031 Q5874016 Q832685 Q7080791 Q1359302 Q10564889 Q627189 Q7566598 Q692736 Q1428001 Q5603018 Q2167704 Q20081274 Q978086 Q3319217 Q7314631 Q7700059 Q3834914 Q7003402 Q7886425 Q1149512 Q47795 Q3366809 Q5603055 Q6023387 Q5602972 Q5602976 Q5603002 Q5461304 Q3345101 Q6736346 Q1479955 Q19604410 Q4118233 Q7981882 Q837159 Q3678393 Q2070568 Q7084151 Q25648673 Q18390996 Q16939363 Q3896756 Q16561954 Q192254 Q3829442 Q3150482 Q2256403 Q577337 Q3174289 Q958419 Q5602966 Q7054469 Q6517170 Q7551666 Q1757843 Q6357092 Q504564 Q1546314 Q5987342 Q4905015 Q7707623 Q7008134 Q3366586 Q2792033 Q370936 Q1170281 Q5602992 Q2186595 Q5032604 Q17291443 Q1233269 Q941224 Q5305890 Q281745 Q9284332 Q25796237 Q3179541 Q7362579 Q1937395 Q7314655 Q606620 Q15980791 Q2037135 Q213451 Q7163696 Q7902341 Q285388 Q47768 Q4693914 Q7055038 Q8058184 Q8027182 Q7551721 Q3098498 Q852402 Q6392267 Q2382402 Q4708523 Q634277 Q4986433 Q6984707 Q5604428 Q5604429 Q47750 Q4157656 Q304191 Q7055001 Q7551690 Q7551691 Q6516925 Q3556135 Q946862 Q24283702 Q5203383 Q3366683 Q2256283 Q4791288
(c(Q7210356),P361,c(Q1752346))
action count
action less
action find_tuple_counts
relation P361
type Q7210356
type Q1752346
action count
action filter_type
action find_reverse
entity Q192254
relation P361
type Q7210356
[ANSWER]
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?e ) WHERE { ?b property:P361 ?u . ?b rdf:type ontology:Q7210356 . ?u rdf:type ontology:Q1752346 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P361 resource:Q192254 . ?t rdf:type ontology:Q7210356 } } . FILTER ( ?e < ?m ) }
Green Party of Texas Green Party of Tennessee Edelweiss Aosta Valley United Pensioners Panhellenic Liberation Movement Republican Party of Arkansas Party of Christian Democracy Northern Ireland Conservatives Delaware Democratic Party Autonomist Federation Rebirth of Christian Democracy Socialist Party of Kansas Green Party of Louisiana Montana Green Party Christian Democracy for Autonomies Hawaiʻi Republican Party Christian Democratic Party Montana Democratic Party Lega Nord Piemont Australian Greens Victoria Italian Liberal Party Illinois Green Party Iowa Green Party Democratic Centre Socialist Party of Texas Sinistra Italiana Italian Radicals Iowa Democratic Party Autonomy Liberty Participation Ecology Stalwarts Republican Party of Guam Federation of Italian Liberals Mountain Party Massachusetts Democratic Party Green Party of Michigan Communist Refoundation Party Washington State Democratic Party American Constitution Party Pan-democracy camp Democratic Party of Oregon Democratic Party of New Mexico Democratic Party of Wisconsin Democratic Party of Virginia Mississippi Democratic Party Democratic Party Militant faction Bourbon Democrat Liberal Democrats Recreate Greece Liberal Party of Australia (New South Wales Division) Lega Lombarda Iraqi Independence Party Communist party of Slovakia (1948) United Democratic Christians Left, Ecology and Freedom Socialist Party of California Mezhraiontsy Liberal Party of Geneva Vermont Democratic Party Alliance for Italy Socialist Democracy Radical Republican Arizona Green Party Alaskan Independence Party Michigan Democratic Party Constitution Party of Montana Bolsheviks National Front Moderates for Piedmont Independent Greens of Virginia Democratic Party of Georgia Australian Labor Party (New South Wales Branch) Allgemeine SS Ho Chi Minh Communist Youth Union Welsh Labour Ohio Democratic Party Half-Breed The Megaphone - Crocetta List labour party South Carolina Green Party The Right Party of Italian Communists Green Party of Ohio Social Democratic Party "Harmony" Italian Conservatives, Reformists Ecologist Party "The Greens" I the South Republican Party Tennessee Democratic Party List for Trieste Nevada Democratic Party Union for Democracy and National Solidarity Yemeni Socialist Party Future and Freedom Green-Rainbow Party Green Party of Washington State Indiana Republican Party Green Party of Arkansas Green Party of California Green Party of Florida Florida Democratic Party New Democrats Maine Democratic Party Förderndes Mitglied der SS Green Party of Mississippi Nasserist Unionist People's Organisation Welsh Conservative Party Communist Party of India Civic Freedom The Other Russia Old Guard faction CasaPound Italia Romanian Social Democratic Party Green Party of Delaware Southern Democratic Party Green Italy National Liberation Front Venetian Autonomy League Independence Republic of Sardinia Left Front European Republicans Movement Vermont Republican Party Liga Veneta Green Party of Alaska North Carolina Democratic Party Lega Nord Trentino Socialist Party of Connecticut Brothers of Italy Progressive Valdotanian Union FRELIMO UDEUR Populars for the South Idaho Democratic Party Renziani Texas Democratic Party New Hampshire Democratic Party Pirate Party of Morocco Civic Choice Valdotanian Union Fortza Paris Green Party of Colorado Constitution Party of Oregon cannabis political party National-Democratic Party Movement for Autonomies Trentino Tyrolean Autonomist Party Drasi Italian Socialist Party Independence Party of Minnesota political group of the European Parliament Scottish Labour Party Romanian Social Democratic Party Minnesota Democratic–Farmer–Labor Party Republican Party of Iowa South Tyrolean People's Party North Carolina Green Party Christian Democracy Green Party Pennsylvania Democratic Party Utah Democratic Party Al-Islah Italy of Values Agricultural Party of Greece North Dakota Republican Party Young Independence Wisconsin Green Party Socialist Party of the Islands The Greens Democratic Liberal Party Kentucky Green Party Popular Action Alaska Democratic Party True Finns Builders and Managers of Freedom and Democracy Nebraska Democratic Party Greens South Australia Greens Western Australia Northern League Democratic Union National Coalition Party North Dakota Democratic-Nonpartisan League Party Socialist Party of Michigan Socialist Party of New Jersey Left Wing Section of the Socialist Party Toward North Consumers' List Alternative Greens D.C. Statehood Green Party Illinois Republican Party Sardinian Reformers Arizona Democratic Party
190
action count
action less
action find_tuple_counts
relation part of
type political organization
type assembly
action count
action filter_type
action find_reverse
entity National Liberation Front
relation part of
type political organization
[{'concept': 'political organization'}, 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?e ) WHERE { ?b property:part_of ?u . ?b rdf:type ontology:political_organization . ?u rdf:type ontology:assembly } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:part_of resource:National_Liberation_Front . ?t rdf:type ontology:political_organization } } . FILTER ( ?e < ?m ) }
[]