Simple Question (Direct)
Simple Question
Q304964
P21
Q290
USER
Which sex does William Lucas have ?
(Q304964,P21,c(Q290))
action filter_type
action find
entity Q304964
relation P21
type Q290
['Q304964', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q304964 property:P21 ?z . ?z rdf:type ontology:Q290 }
William Lucas
action filter_type
action find
entity William Lucas
relation gender
type sex
['William Lucas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:William_Lucas property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q304964,P21,c(Q290))
action filter_type
action find
entity Q304964
relation P21
type Q290
William Lucas has a [ANSWER]
['Q304964', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q304964 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
William Lucas has a male
male
action filter_type
action find
entity William Lucas
relation gender
type sex
['William Lucas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:William_Lucas property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q304964
P102
Q7210356
USER
Which party does William Lucas belong to ?
(Q304964,P102,c(Q7210356))
action filter_type
action find
entity Q304964
relation P102
type Q7210356
['Q304964', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?l WHERE { resource:Q304964 property:P102 ?l . ?l rdf:type ontology:Q7210356 }
William Lucas
action filter_type
action find
entity William Lucas
relation member of political party
type political organization
['William Lucas', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?l WHERE { resource:William_Lucas property:member_of_political_party ?l . ?l rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q304964,P102,c(Q7210356))
action filter_type
action find
entity Q304964
relation P102
type Q7210356
William Lucas belongs to [ANSWER]
['Q304964', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?l WHERE { resource:Q304964 property:P102 ?l . ?l rdf:type ontology:Q7210356 }
Democratic Party
William Lucas belongs to Democratic Party
Democratic Party
action filter_type
action find
entity William Lucas
relation member of political party
type political organization
['William Lucas', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?l WHERE { resource:William_Lucas property:member_of_political_party ?l . ?l rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17110620
Q7210356
USER
And how about Torvild Sveen?
(Q17110620,P102,c(Q7210356))
action filter_type
action find
entity Q17110620
relation P102
type Q7210356
['Q17110620', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { resource:Q17110620 property:P102 ?v . ?v rdf:type ontology:Q7210356 }
Torvild Sveen
action filter_type
action find
entity Torvild Sveen
relation member of political party
type political organization
['Torvild Sveen', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { resource:Torvild_Sveen property:member_of_political_party ?v . ?v rdf:type ontology:political_organization }
[]
political organization
Q493685
SYSTEM
Centre Party
Q493685
(Q17110620,P102,c(Q7210356))
action filter_type
action find
entity Q17110620
relation P102
type Q7210356
[ANSWER]
['Q17110620', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { resource:Q17110620 property:P102 ?v . ?v rdf:type ontology:Q7210356 }
Centre Party
Centre Party
action filter_type
action find
entity Torvild Sveen
relation member of political party
type political organization
['Torvild Sveen', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { resource:Torvild_Sveen property:member_of_political_party ?v . ?v rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q493685 Q20 Q1270638
P17
Q15617994
USER
Is that political organization situated in Norway and Rhine ?
(Q493685,P17,Q20) (Q493685,P17,Q1270638)
action is_in
entity Q493685
action intersection
action find_reverse
entity Q20
relation P17
action find_reverse
entity Q1270638
relation P17
['Q493685', 'P17', 'Q20'] ['Q493685', 'P17', 'Q1270638']
ASK WHERE { resource:Q493685 property:P17 resource:Q20 . resource:Q493685 property:P17 resource:Q1270638 }
Centre Party Norway Rhine
action is_in
entity Centre Party
action intersection
action find_reverse
entity Norway
relation country
action find_reverse
entity Rhine
relation country
['Centre Party', 'country', 'Norway'] ['Centre Party', 'country', 'Rhine']
ASK WHERE { resource:Centre_Party property:country resource:Norway . resource:Centre_Party property:country resource:Rhine }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q493685,P17,Q20) (Q493685,P17,Q1270638)
action is_in
entity Q493685
action intersection
action find_reverse
entity Q20
relation P17
action find_reverse
entity Q1270638
relation P17
[ANSWER]
['Q493685', 'P17', 'Q20'] ['Q493685', 'P17', 'Q1270638']
ASK WHERE { resource:Q493685 property:P17 resource:Q20 . resource:Q493685 property:P17 resource:Q1270638 }
YES and NO respectively
action is_in
entity Centre Party
action intersection
action find_reverse
entity Norway
relation country
action find_reverse
entity Rhine
relation country
['Centre Party', 'country', 'Norway'] ['Centre Party', 'country', 'Rhine']
ASK WHERE { resource:Centre_Party property:country resource:Norway . resource:Centre_Party property:country resource:Rhine }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29552
P106
Q502895
USER
Which person has career as Democratic Party ?
(c(Q502895),P106,Q29552)
action filter_type
action find_reverse
entity Q29552
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q29552']
SELECT DISTINCT ?w WHERE { ?w property:P106 resource:Q29552 . ?w rdf:type ontology:Q502895 }
Democratic Party
action filter_type
action find_reverse
entity Democratic Party
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Democratic Party']
SELECT DISTINCT ?w WHERE { ?w property:occupation resource:Democratic_Party . ?w rdf:type ontology:common_name }
[]
common name
Q361146
SYSTEM
Ruby Laffoon
Q361146
(c(Q502895),P106,Q29552)
action filter_type
action find_reverse
entity Q29552
relation P106
type Q502895
[ANSWER] has career as Democratic Party
[{'concept': 'Q502895'}, 'P106', 'Q29552']
SELECT DISTINCT ?w WHERE { ?w property:P106 resource:Q29552 . ?w rdf:type ontology:Q502895 }
Ruby Laffoon
Ruby Laffoon has career as Democratic Party
Ruby Laffoon
action filter_type
action find_reverse
entity Democratic Party
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Democratic Party']
SELECT DISTINCT ?w WHERE { ?w property:occupation resource:Democratic_Party . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29552
P1142
Q7257
USER
What do Democratic Party believe in ?
(Q29552,P1142,c(Q7257))
action filter_type
action find
entity Q29552
relation P1142
type Q7257
['Q29552', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7257 . resource:Q29552 property:P1142 ?n }
Democratic Party
action filter_type
action find
entity Democratic Party
relation political ideology
type ideology
['Democratic Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:ideology . resource:Democratic_Party property:political_ideology ?n }
[]
ideology
Q201712 Q821102
SYSTEM
social liberalism, progressivism
Q201712 Q821102
(Q29552,P1142,c(Q7257))
action filter_type
action find
entity Q29552
relation P1142
type Q7257
Democratic Party believe in [ANSWERS]
['Q29552', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7257 . resource:Q29552 property:P1142 ?n }
social liberalism progressivism
Democratic Party believe in social liberalism and progressivism
social liberalism progressivism
action filter_type
action find
entity Democratic Party
relation political ideology
type ideology
['Democratic Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:ideology . resource:Democratic_Party property:political_ideology ?n }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5154549
Q7257
USER
And what about Communist Youth of Catalonia?
(Q5154549,P1142,c(Q7257))
action filter_type
action find
entity Q5154549
relation P1142
type Q7257
['Q5154549', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7257 . resource:Q5154549 property:P1142 ?i }
Communist Youth of Catalonia
action filter_type
action find
entity Communist Youth of Catalonia
relation political ideology
type ideology
['Communist Youth of Catalonia', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:ideology . resource:Communist_Youth_of_Catalonia property:political_ideology ?i }
[]
ideology
Q7272
SYSTEM
socialism
Q7272
(Q5154549,P1142,c(Q7257))
action filter_type
action find
entity Q5154549
relation P1142
type Q7257
[ANSWER]
['Q5154549', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7257 . resource:Q5154549 property:P1142 ?i }
socialism
socialism
action filter_type
action find
entity Communist Youth of Catalonia
relation political ideology
type ideology
['Communist Youth of Catalonia', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:ideology . resource:Communist_Youth_of_Catalonia property:political_ideology ?i }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q6216 Q201712
P1142
Q7210356
USER
Which political organizations promote social liberalism but not liberalism ?
AND((c(Q7210356),P1142,Q201712), NOT((c(Q7210356),P1142,Q6216)))
action filter_type
action difference
action find_reverse
entity Q201712
relation P1142
action find_reverse
entity Q6216
relation P1142
type Q7210356
{'AND': [[{'concept': 'Q7210356'}, 'P1142', 'Q201712'], {'NOT': [[{'concept': 'Q7210356'}, 'P1142', 'Q6216']]}]}
SELECT DISTINCT ?m WHERE { ?m property:P1142 resource:Q201712 . MINUS { ?m property:P1142 resource:Q6216 } . ?m rdf:type ontology:Q7210356 }
liberalism social liberalism
action filter_type
action difference
action find_reverse
entity social liberalism
relation political ideology
action find_reverse
entity liberalism
relation political ideology
type political organization
{'AND': [[{'concept': 'political organization'}, 'political ideology', 'social liberalism'], {'NOT': [[{'concept': 'political organization'}, 'political ideology', 'liberalism']]}]}
SELECT DISTINCT ?m WHERE { ?m property:political_ideology resource:social_liberalism . MINUS { ?m property:political_ideology resource:liberalism } . ?m rdf:type ontology:political_organization }
[]
political organization
Q3498258 Q662377 Q3206337 Q2566343 Q912899 Q7550710 Q1756601 Q584558 Q2643041 Q3775933
SYSTEM
Some of them are Party of Civic Understanding, Progressive People's Party, Pact of Liberal Democrats, Free National Movement, All India Trinamool Congress, Social Liberal Party, People's Justice Party, Modern Left, Society for Other Politics, Democratic Renewal
Q15984938 Q2366265 Q2872704 Q7280430 Q662377 Q6151267 Q5500567 Q7140560 Q3498258 Q4345959 Q23783750 Q2482138 Q3686035 Q161545 Q427965 Q2912096 Q3250438 Q3866578 Q2566343 Q6064020 Q6064022 Q1570973 Q9624 Q2949890 Q3345101 Q1278787 Q3866587 Q6508956 Q178216 Q489124 Q7747053 Q3775933 Q847504 Q1747585 Q1144342 Q7270934 Q15052137 Q47729 Q17069270 Q7550710 Q15978686 Q1288920 Q584558 Q1979567 Q1756601 Q2421870 Q3896747 Q3565827 Q23731823 Q1299105 Q60169 Q147910 Q916161 Q3206337 Q1521975 Q3400454 Q3834914 Q1771225 Q1629663 Q6888652 Q1186234 Q577337 Q4345962 Q6357092 Q15916934 Q542010 Q12432988 Q21015669 Q1058959 Q794255 Q3278312 Q200314 Q6540643 Q1937395 Q29552 Q1498659 Q20970716 Q2643041 Q6064012 Q47768 Q15980852 Q10225 Q660342 Q357262 Q781392 Q912899 Q60588 Q4313247 Q946306 Q18116909 Q152744 Q2326957 Q3946519
AND((c(Q7210356),P1142,Q201712), NOT((c(Q7210356),P1142,Q6216)))
action filter_type
action difference
action find_reverse
entity Q201712
relation P1142
action find_reverse
entity Q6216
relation P1142
type Q7210356
[ANSWERS] promote social liberalism but not liberalism
{'AND': [[{'concept': 'Q7210356'}, 'P1142', 'Q201712'], {'NOT': [[{'concept': 'Q7210356'}, 'P1142', 'Q6216']]}]}
SELECT DISTINCT ?m WHERE { ?m property:P1142 resource:Q201712 . MINUS { ?m property:P1142 resource:Q6216 } . ?m rdf:type ontology:Q7210356 }
Broad Front UNEN Social Liberal Party Independent Autonomists Radical Federative Movement Progressive People's Party People's Movement for Democratic Change Freedom List Partido pa Adelanto I Inovashon Soshal Party of Civic Understanding Democratic Action Party Peruvians for Change Autonomy Liberty Participation Ecology Republican Democratic Concentration South Schleswig Voter Federation Radical Party of the Left Citizens' Democratic Party Scottish Liberal Democrats Community Movement Free National Movement People's Democratic Party (Chile) Democratic Party (Chile) Pakatan Rakyat Liberal Democrats Historical Left New Democrats Liberal Party G99 League for Democracy Party Alliance for Italy Uri Party The Liberals Democratic Renewal Democratic Coalition Democratic Alliance Union, Progress and Democracy Queensland Democrats Your Movement Democratic Party Pakistan Liberal Party Social Liberal Party Minjoo Party of Korea People's Party For Work And Betterment Modern Left New Frontier Party People's Justice Party The Social Right Constitutional Democratic Party Party for the Open Society En marche ! Sardinian Action Party Japan Renewal Party Zares Danish Social Liberal Party Pact of Liberal Democrats Social Democratic People's Party For Aosta Valley List for Trieste Autonomist Democrats Union for Democracy and Social Progress Modern Equality Party Democratic Party European Republicans Movement For Nation and Country Party Progressive Valdotanian Union Olive Tree Party Alliance Our Moldova Italian Union Movement Democratic Party Democratic Union New Union (Social Liberals) South Sudan Liberal Party Democratic Party of Japan Liberal Party of Sudan Minnesota Democratic–Farmer–Labor Party Democratic Party Rally for Congolese Democracy Possible Society for Other Politics National Democratic Party Italy of Values Lamington Party Indian National Congress New Hope Democratic Party Adilet Australian Democrats All India Trinamool Congress Liberal Party People's Party of South Ossetia Our Party Japan Innovation Party Gibraltar Liberal Party Civic Coalition Sammarinese for Freedom
Party of Civic Understanding, Progressive People's Party, Pact of Liberal Democrats, Free National Movement, All India Trinamool Congress, Social Liberal Party, People's Justice Party, Modern Left, Society for Other Politics and Democratic Renewal promote social liberalism but not liberalism
Party of Civic Understanding Progressive People's Party Pact of Liberal Democrats Free National Movement All India Trinamool Congress Social Liberal Party People's Justice Party Modern Left Society for Other Politics Democratic Renewal
action filter_type
action difference
action find_reverse
entity social liberalism
relation political ideology
action find_reverse
entity liberalism
relation political ideology
type political organization
{'AND': [[{'concept': 'political organization'}, 'political ideology', 'social liberalism'], {'NOT': [[{'concept': 'political organization'}, 'political ideology', 'liberalism']]}]}
SELECT DISTINCT ?m WHERE { ?m property:political_ideology resource:social_liberalism . MINUS { ?m property:political_ideology resource:liberalism } . ?m rdf:type ontology:political_organization }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P361
Q7210356 Q43229
USER
Which organizations are parts of max number of political organizations ?
(c(Q43229),P361,c(Q7210356))
action argmax
action find_tuple_counts
relation P361
type Q43229
type Q7210356
[{'concept': 'Q43229'}, 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?r ) { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?j ) WHERE { ?p rdf:type ontology:Q43229 . ?y rdf:type ontology:Q7210356 . ?p property:P361 ?y } GROUP BY ?p } } . { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?q ) WHERE { ?s property:P361 ?b . ?s rdf:type ontology:Q43229 . ?b rdf:type ontology:Q7210356 } GROUP BY ?s } . FILTER ( ?q = ?r ) }
action argmax
action find_tuple_counts
relation part of
type organization
type political organization
[{'concept': 'organization'}, 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?r ) { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?j ) WHERE { ?p rdf:type ontology:organization . ?y rdf:type ontology:political_organization . ?p property:part_of ?y } GROUP BY ?p } } . { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?q ) WHERE { ?s property:part_of ?b . ?s rdf:type ontology:organization . ?b rdf:type ontology:political_organization } GROUP BY ?s } . FILTER ( ?q = ?r ) }
[]
political organization organization
Q2103651 Q7314708 Q172648
SYSTEM
Young Socialists, Republican State Committee of Pennsylvania, Greek People's Liberation Army
Q1898994 Q2103651 Q172648 Q7314708 Q5027800 Q5016446 Q20850715 Q1185863
(c(Q43229),P361,c(Q7210356))
action argmax
action find_tuple_counts
relation P361
type Q43229
type Q7210356
[ANSWERS] are parts of max number of political organizations
[{'concept': 'Q43229'}, 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?r ) { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?j ) WHERE { ?p rdf:type ontology:Q43229 . ?y rdf:type ontology:Q7210356 . ?p property:P361 ?y } GROUP BY ?p } } . { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?q ) WHERE { ?s property:P361 ?b . ?s rdf:type ontology:Q43229 . ?b rdf:type ontology:Q7210356 } GROUP BY ?s } . FILTER ( ?q = ?r ) }
Special Organisation Young Socialists Greek People's Liberation Army Republican State Committee of Pennsylvania Campaign for Nationalism in Scotland Cadets of the Republic Organização da Mulher Moçambicana Democratic National Committee
Young Socialists, Republican State Committee of Pennsylvania and Greek People's Liberation Army are parts of max number of political organizations
Young Socialists Republican State Committee of Pennsylvania Greek People's Liberation Army
action argmax
action find_tuple_counts
relation part of
type organization
type political organization
[{'concept': 'organization'}, 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?r ) { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?j ) WHERE { ?p rdf:type ontology:organization . ?y rdf:type ontology:political_organization . ?p property:part_of ?y } GROUP BY ?p } } . { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?q ) WHERE { ?s property:part_of ?b . ?s rdf:type ontology:organization . ?b rdf:type ontology:political_organization } GROUP BY ?s } . FILTER ( ?q = ?r ) }
[]