Simple Question (Direct)
Simple Question
Q7192085
P102
Q7210356
USER
Which political organization is Pierre Bertrand a member of ?
(Q7192085,P102,c(Q7210356))
action filter_type
action find
entity Q7192085
relation P102
type Q7210356
['Q7192085', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q7192085 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Pierre Bertrand
action filter_type
action find
entity Pierre Bertrand
relation member of political party
type political organization
['Pierre Bertrand', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Pierre_Bertrand property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
political organization
Q2597606
SYSTEM
Conservative Party of Quebec
Q2597606
(Q7192085,P102,c(Q7210356))
action filter_type
action find
entity Q7192085
relation P102
type Q7210356
The [ANSWER] is Pierre Bertrand a member of
['Q7192085', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q7192085 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Conservative Party of Quebec
The Conservative Party of Quebec is Pierre Bertrand a member of
Conservative Party of Quebec
action filter_type
action find
entity Pierre Bertrand
relation member of political party
type political organization
['Pierre Bertrand', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Pierre_Bertrand property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2597606
P1142
Q1047113
USER
Which special field is the ideology of that political organization ?
(Q2597606,P1142,c(Q1047113))
action filter_type
action find
entity Q2597606
relation P1142
type Q1047113
['Q2597606', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1047113 . resource:Q2597606 property:P1142 ?r }
Conservative Party of Quebec
action filter_type
action find
entity Conservative Party of Quebec
relation political ideology
type special field
['Conservative Party of Quebec', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:special_field . resource:Conservative_Party_of_Quebec property:political_ideology ?r }
[]
special field
Q7169
SYSTEM
conservatism
Q7169
(Q2597606,P1142,c(Q1047113))
action filter_type
action find
entity Q2597606
relation P1142
type Q1047113
[ANSWER] is the ideology of that political organization
['Q2597606', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1047113 . resource:Q2597606 property:P1142 ?r }
conservatism
Conservatism is the ideology of that political organization
conservatism
action filter_type
action find
entity Conservative Party of Quebec
relation political ideology
type special field
['Conservative Party of Quebec', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:special_field . resource:Conservative_Party_of_Quebec property:political_ideology ?r }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q207652
P361
Q58778 Q1047113
USER
Which systems are greater number of special fields a portion of than chemical industry ?
(c(Q1047113),P361,c(Q58778))
action greater
action find_reverse_tuple_counts
relation P361
type Q58778
type Q1047113
action count
action filter_type
action find
entity Q207652
relation P361
type Q58778
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P361 ?z . ?z rdf:type ontology:Q58778 . ?u rdf:type ontology:Q1047113 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Q207652 property:P361 ?p . ?p rdf:type ontology:Q58778 } } . FILTER ( ?q > ?s ) }
chemical industry
action greater
action find_reverse_tuple_counts
relation part of
type system
type special field
action count
action filter_type
action find
entity chemical industry
relation part of
type system
[{'concept': 'special field'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:part_of ?z . ?z rdf:type ontology:system . ?u rdf:type ontology:special_field } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:chemical_industry property:part_of ?p . ?p rdf:type ontology:system } } . FILTER ( ?q > ?s ) }
[]
system special field
Q856625 Q940913 Q11451
SYSTEM
Branch of libraries, continuous track, agriculture
Q856625 Q11451 Q940913 Q8148
(c(Q1047113),P361,c(Q58778))
action greater
action find_reverse_tuple_counts
relation P361
type Q58778
type Q1047113
action count
action filter_type
action find
entity Q207652
relation P361
type Q58778
[ANSWERS] are greater number of special fields a portion of than chemical industry
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P361 ?z . ?z rdf:type ontology:Q58778 . ?u rdf:type ontology:Q1047113 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Q207652 property:P361 ?p . ?p rdf:type ontology:Q58778 } } . FILTER ( ?q > ?s ) }
Branch of libraries agriculture continuous track industry
Branch of libraries, continuous track and agriculture are greater number of special fields a portion of than chemical industry
Branch of libraries continuous track agriculture
action greater
action find_reverse_tuple_counts
relation part of
type system
type special field
action count
action filter_type
action find
entity chemical industry
relation part of
type system
[{'concept': 'special field'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:part_of ?z . ?z rdf:type ontology:system . ?u rdf:type ontology:special_field } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:chemical_industry property:part_of ?p . ?p rdf:type ontology:system } } . FILTER ( ?q > ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1127794
P361
Q58778 Q1047113
USER
And what about valvetrain?
(c(Q1047113),P361,c(Q58778))
action greater
action find_reverse_tuple_counts
relation P361
type Q58778
type Q1047113
action count
action filter_type
action find
entity Q1127794
relation P361
type Q58778
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?f ) WHERE { ?l rdf:type ontology:Q58778 . ?s rdf:type ontology:Q1047113 . ?s property:P361 ?l } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { resource:Q1127794 property:P361 ?v . ?v rdf:type ontology:Q58778 } } . FILTER ( ?f > ?o ) }
valvetrain
action greater
action find_reverse_tuple_counts
relation part of
type system
type special field
action count
action filter_type
action find
entity valvetrain
relation part of
type system
[{'concept': 'special field'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?f ) WHERE { ?l rdf:type ontology:system . ?s rdf:type ontology:special_field . ?s property:part_of ?l } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { resource:valvetrain property:part_of ?v . ?v rdf:type ontology:system } } . FILTER ( ?f > ?o ) }
[]
system special field
Q856625 Q940913 Q11451
SYSTEM
Branch of libraries, continuous track, agriculture
Q856625 Q11451 Q940913 Q8148
(c(Q1047113),P361,c(Q58778))
action greater
action find_reverse_tuple_counts
relation P361
type Q58778
type Q1047113
action count
action filter_type
action find
entity Q1127794
relation P361
type Q58778
[ANSWERS]
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?f ) WHERE { ?l rdf:type ontology:Q58778 . ?s rdf:type ontology:Q1047113 . ?s property:P361 ?l } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { resource:Q1127794 property:P361 ?v . ?v rdf:type ontology:Q58778 } } . FILTER ( ?f > ?o ) }
Branch of libraries agriculture continuous track industry
Branch of libraries continuous track agriculture
action greater
action find_reverse_tuple_counts
relation part of
type system
type special field
action count
action filter_type
action find
entity valvetrain
relation part of
type system
[{'concept': 'special field'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?f ) WHERE { ?l rdf:type ontology:system . ?s rdf:type ontology:special_field . ?s property:part_of ?l } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { resource:valvetrain property:part_of ?v . ?v rdf:type ontology:system } } . FILTER ( ?f > ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q1047113 Q1914636 Q151885
USER
How many special fields are around 1 activities or concepts a component of ?
(c(Q1914636)|c(Q151885),P361,c(Q1047113))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q1047113
type Q1914636
action find_reverse_tuple_counts
relation P361
type Q1047113
type Q151885
value 1
[[{'concept': 'Q1914636'}, {'concept': 'Q151885'}], 'P361', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?r WHERE { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1914636 ) ( ontology:Q151885 ) } } GROUP BY ?r } . FILTER ( ?w = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type special field
type activity
action find_reverse_tuple_counts
relation part of
type special field
type concept
value 1
[[{'concept': 'activity'}, {'concept': 'concept'}], 'part of', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?r WHERE { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:activity ) ( ontology:concept ) } } GROUP BY ?r } . FILTER ( ?w = 1 ) }
[]
special field activity concept
SYSTEM
7
Q1071 Q40821 Q37732 Q2861470 Q161437 Q131089 Q23498
(c(Q1914636)|c(Q151885),P361,c(Q1047113))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q1047113
type Q1914636
action find_reverse_tuple_counts
relation P361
type Q1047113
type Q151885
value 1
[ANSWER]
[[{'concept': 'Q1914636'}, {'concept': 'Q151885'}], 'P361', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?r WHERE { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1914636 ) ( ontology:Q151885 ) } } GROUP BY ?r } . FILTER ( ?w = 1 ) }
geography surgery demography emergency medicine ophthalmology geodesy archaeology
7
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type special field
type activity
action find_reverse_tuple_counts
relation part of
type special field
type concept
value 1
[[{'concept': 'activity'}, {'concept': 'concept'}], 'part of', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?r WHERE { ?d rdf:type ?s . VALUES ( ?s ) { ( ontology:activity ) ( ontology:concept ) } } GROUP BY ?r } . FILTER ( ?w = 1 ) }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3237838
Q838948
USER
And also tell me about Liberté, j'écris ton nom?
(Q3237838,P364,c(Q838948))
action filter_type
action find
entity Q3237838
relation P364
type Q838948
['Q3237838', 'P364', {'concept': 'Q838948'}]
SELECT DISTINCT ?e WHERE { resource:Q3237838 property:P364 ?e . ?e rdf:type ontology:Q838948 }
Liberté, j'écris ton nom
action filter_type
action find
entity Liberté, j'écris ton nom
relation original language of work
type work of art
["Liberté, j'écris ton nom", 'original language of work', {'concept': 'work of art'}]
SELECT DISTINCT ?e WHERE { resource:Liberté,_j'écris_ton_nom property:original_language_of_work ?e . ?e rdf:type ontology:work_of_art }
[]
work of art
Q3083234
SYSTEM
Française
Q3083234
(Q3237838,P364,c(Q838948))
action filter_type
action find
entity Q3237838
relation P364
type Q838948
[ANSWER]
['Q3237838', 'P364', {'concept': 'Q838948'}]
SELECT DISTINCT ?e WHERE { resource:Q3237838 property:P364 ?e . ?e rdf:type ontology:Q838948 }
Française
Française
action filter_type
action find
entity Liberté, j'écris ton nom
relation original language of work
type work of art
["Liberté, j'écris ton nom", 'original language of work', {'concept': 'work of art'}]
SELECT DISTINCT ?e WHERE { resource:Liberté,_j'écris_ton_nom property:original_language_of_work ?e . ?e rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q3083234 Q142
P495
Q15617994
USER
Is France the country of origin of that work of art ?
(Q3083234,P495,Q142)
action is_in
entity Q142
action find
entity Q3083234
relation P495
['Q3083234', 'P495', 'Q142']
ASK WHERE { resource:Q3083234 property:P495 resource:Q142 }
Française France
action is_in
entity France
action find
entity Française
relation country of origin
['Française', 'country of origin', 'France']
ASK WHERE { resource:Française property:country_of_origin resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q3083234,P495,Q142)
action is_in
entity Q142
action find
entity Q3083234
relation P495
[ANSWER]
['Q3083234', 'P495', 'Q142']
ASK WHERE { resource:Q3083234 property:P495 resource:Q142 }
Yes
action is_in
entity France
action find
entity Française
relation country of origin
['Française', 'country of origin', 'France']
ASK WHERE { resource:Française property:country_of_origin resource:France }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7192085 Q16
P27
Q1048835
USER
Is Pierre Bertrand a civilian of Canada ?
(Q7192085,P27,Q16)
action is_in
entity Q16
action find
entity Q7192085
relation P27
['Q7192085', 'P27', 'Q16']
ASK WHERE { resource:Q7192085 property:P27 resource:Q16 }
Pierre Bertrand Canada
action is_in
entity Canada
action find
entity Pierre Bertrand
relation country of citizenship
['Pierre Bertrand', 'country of citizenship', 'Canada']
ASK WHERE { resource:Pierre_Bertrand property:country_of_citizenship resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q7192085,P27,Q16)
action is_in
entity Q16
action find
entity Q7192085
relation P27
[ANSWER]
['Q7192085', 'P27', 'Q16']
ASK WHERE { resource:Q7192085 property:P27 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Pierre Bertrand
relation country of citizenship
['Pierre Bertrand', 'country of citizenship', 'Canada']
ASK WHERE { resource:Pierre_Bertrand property:country_of_citizenship resource:Canada }
[]