Simple Question (Direct)
Simple Question
Q3172750
P106
Q12737077
USER
Which occupations are the professions of Jean Israël ?
(Q3172750,P106,c(Q12737077))
action filter_type
action find
entity Q3172750
relation P106
type Q12737077
['Q3172750', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q3172750 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Jean Israël
action filter_type
action find
entity Jean Israël
relation occupation
type occupation
['Jean Israël', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Jean_Israël property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q81096 Q13582652 Q2095549
SYSTEM
engineer, civil engineer, aviator
Q408832 Q81096 Q13582652 Q2095549
(Q3172750,P106,c(Q12737077))
action filter_type
action find
entity Q3172750
relation P106
type Q12737077
The [ANSWERS] are the professions of Jean Israël
['Q3172750', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q3172750 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
airman engineer civil engineer aviator
The engineer, civil engineer and aviator are the professions of Jean Israël
engineer civil engineer aviator
action filter_type
action find
entity Jean Israël
relation occupation
type occupation
['Jean Israël', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Jean_Israël property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2095549
P1029
Q2424752
USER
Which product has that occupation as team member ?
(c(Q2424752),P1029,Q2095549)
action filter_type
action find_reverse
entity Q2095549
relation P1029
type Q2424752
[{'concept': 'Q2424752'}, 'P1029', 'Q2095549']
SELECT DISTINCT ?d WHERE { ?d property:P1029 resource:Q2095549 . ?d rdf:type ontology:Q2424752 }
aviator
action filter_type
action find_reverse
entity aviator
relation crew member
type product
[{'concept': 'product'}, 'crew member', 'aviator']
SELECT DISTINCT ?d WHERE { ?d property:crew_member resource:aviator . ?d rdf:type ontology:product }
[]
product
Clarification for simple ques.
Q81096
SYSTEM
Did you mean engineer ?
Q81096 Q13582652 Q2095549
(c(Q2424752),P1029,Q81096) (c(Q2424752),P1029,Q13582652) (c(Q2424752),P1029,Q2095549)
[ANSWER]
[{'concept': 'Q2424752'}, 'P1029', 'Q81096'] [{'concept': 'Q2424752'}, 'P1029', 'Q13582652'] [{'concept': 'Q2424752'}, 'P1029', 'Q2095549']
SELECT DISTINCT ?d WHERE { ?d property:P1029 resource:Q2095549 . ?d rdf:type ontology:Q2424752 }
engineer civil engineer aviator
Did you mean engineer ?
engineer
[{'concept': 'product'}, 'crew member', 'engineer'] [{'concept': 'product'}, 'crew member', 'civil engineer'] [{'concept': 'product'}, 'crew member', 'aviator']
SELECT DISTINCT ?d WHERE { ?d property:crew_member resource:aviator . ?d rdf:type ontology:product }
[]
Simple Question (Coreferenced)
USER
No, I meant aviator. Could you tell me the answer for that?
(c(Q2424752),P1029,Q2095549)
Q2095549
[{'concept': 'Q2424752'}, 'P1029', 'Q2095549']
[{'concept': 'product'}, 'crew member', 'aviator']
[]
Q291359
SYSTEM
AEG C.IV
Q291359
(c(Q2424752),P1029,Q2095549)
action filter_type
action find_reverse
entity Q2095549
relation P1029
type Q2424752
[ANSWER] has that occupation as team member
[{'concept': 'Q2424752'}, 'P1029', 'Q2095549']
SELECT DISTINCT ?d WHERE { ?d property:P1029 resource:Q2095549 . ?d rdf:type ontology:Q2424752 }
AEG C.IV
AEG C.IV has that occupation as team member
AEG C.IV
action filter_type
action find_reverse
entity aviator
relation crew member
type product
[{'concept': 'product'}, 'crew member', 'aviator']
SELECT DISTINCT ?d WHERE { ?d property:crew_member resource:aviator . ?d rdf:type ontology:product }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P516
Q2576663 Q2424752
USER
Which engine configurations are used to power min number of products ?
(c(Q2424752),P516,Q648452)
action argmin
action find_reverse_tuple_counts
relation P516
type Q2576663
type Q2424752
[{'concept': 'Q2424752'}, 'P516', 'Q648452']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P516 ?n . ?n rdf:type ontology:Q2576663 . ?p rdf:type ontology:Q2424752 } GROUP BY ?n } } . FILTER ( ?w = ?r ) . { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:P516 ?v . ?v rdf:type ontology:Q2576663 . ?d rdf:type ontology:Q2424752 } GROUP BY ?v } }
action argmin
action find_reverse_tuple_counts
relation powerplant
type engine configuration
type product
[{'concept': 'product'}, 'powerplant', 'Puma']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:powerplant ?n . ?n rdf:type ontology:engine_configuration . ?p rdf:type ontology:product } GROUP BY ?n } } . FILTER ( ?w = ?r ) . { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:powerplant ?v . ?v rdf:type ontology:engine_configuration . ?d rdf:type ontology:product } GROUP BY ?v } }
[]
engine configuration product
Q599854 Q905371 Q1052006
SYSTEM
Mikulin AM-38, de Havilland Gipsy, De Havilland Gipsy Queen
Q905371 Q1052006 Q901252 Q542975 Q742981 Q3508249 Q182883 Q1659797 Q977265 Q61418 Q2303705 Q3031873 Q4017892 Q564413 Q599854 Q648452
(c(Q2424752),P516,Q648452)
action argmin
action find_reverse_tuple_counts
relation P516
type Q2576663
type Q2424752
[ANSWERS] are used to power min number of products
[{'concept': 'Q2424752'}, 'P516', 'Q648452']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P516 ?n . ?n rdf:type ontology:Q2576663 . ?p rdf:type ontology:Q2424752 } GROUP BY ?n } } . FILTER ( ?w = ?r ) . { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:P516 ?v . ?v rdf:type ontology:Q2576663 . ?d rdf:type ontology:Q2424752 } GROUP BY ?v } }
de Havilland Gipsy De Havilland Gipsy Queen Daimler-Benz DB 601 Shvetsov ASh-21 Shvetsov M-11 Hispano-Suiza 12X wankel engine R-2600 Twin Cyclone Klimov M-105 Bristol Jupiter Nakajima Kotobuki Tumansky M-88 Walter Castor Junkers Jumo 210 Mikulin AM-38 Puma
Mikulin AM-38, de Havilland Gipsy and De Havilland Gipsy Queen are used to power min number of products
Mikulin AM-38 de Havilland Gipsy De Havilland Gipsy Queen
action argmin
action find_reverse_tuple_counts
relation powerplant
type engine configuration
type product
[{'concept': 'product'}, 'powerplant', 'Puma']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:powerplant ?n . ?n rdf:type ontology:engine_configuration . ?p rdf:type ontology:product } GROUP BY ?n } } . FILTER ( ?w = ?r ) . { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:powerplant ?v . ?v rdf:type ontology:engine_configuration . ?d rdf:type ontology:product } GROUP BY ?v } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1052006
P176
Q4830453
USER
Who is the maker of that engine configuration ?
(Q1052006,P176,c(Q4830453))
action filter_type
action find
entity Q1052006
relation P176
type Q4830453
['Q1052006', 'P176', {'concept': 'Q4830453'}]
SELECT DISTINCT ?a WHERE { resource:Q1052006 property:P176 ?a . ?a rdf:type ontology:Q4830453 }
De Havilland Gipsy Queen
action filter_type
action find
entity De Havilland Gipsy Queen
relation manufacturer
type business enterprise
['De Havilland Gipsy Queen', 'manufacturer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?a WHERE { resource:De_Havilland_Gipsy_Queen property:manufacturer ?a . ?a rdf:type ontology:business_enterprise }
[]
business enterprise
Clarification for simple ques.
Q1052006
SYSTEM
Did you mean De Havilland Gipsy Queen ?
Q599854 Q905371 Q1052006
(Q599854,P176,c(Q4830453)) (Q905371,P176,c(Q4830453)) (Q1052006,P176,c(Q4830453))
[ANSWER]
['Q599854', 'P176', {'concept': 'Q4830453'}] ['Q905371', 'P176', {'concept': 'Q4830453'}] ['Q1052006', 'P176', {'concept': 'Q4830453'}]
SELECT DISTINCT ?a WHERE { resource:Q1052006 property:P176 ?a . ?a rdf:type ontology:Q4830453 }
Mikulin AM-38 de Havilland Gipsy De Havilland Gipsy Queen
Did you mean De Havilland Gipsy Queen ?
De Havilland Gipsy Queen
['Mikulin AM-38', 'manufacturer', {'concept': 'business enterprise'}] ['de Havilland Gipsy', 'manufacturer', {'concept': 'business enterprise'}] ['De Havilland Gipsy Queen', 'manufacturer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?a WHERE { resource:De_Havilland_Gipsy_Queen property:manufacturer ?a . ?a rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1052006,P176,c(Q4830453))
['Q1052006', 'P176', {'concept': 'Q4830453'}]
['De Havilland Gipsy Queen', 'manufacturer', {'concept': 'business enterprise'}]
[]
Q283666
SYSTEM
de Havilland
Q283666
(Q1052006,P176,c(Q4830453))
action filter_type
action find
entity Q1052006
relation P176
type Q4830453
The maker of that engine configuration is Geoffrey [ANSWER]
['Q1052006', 'P176', {'concept': 'Q4830453'}]
SELECT DISTINCT ?a WHERE { resource:Q1052006 property:P176 ?a . ?a rdf:type ontology:Q4830453 }
de Havilland
The maker of that engine configuration is Geoffrey de Havilland
de Havilland
action filter_type
action find
entity De Havilland Gipsy Queen
relation manufacturer
type business enterprise
['De Havilland Gipsy Queen', 'manufacturer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?a WHERE { resource:De_Havilland_Gipsy_Queen property:manufacturer ?a . ?a rdf:type ontology:business_enterprise }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q283666 Q654779 Q1812196
P112
Q502895
USER
Was that business enterprise founded by Geoffrey de Havilland and Thelma Kalama ?
(Q283666,P112,Q654779) (Q283666,P112,Q1812196)
action is_in
entity Q283666
action intersection
action find_reverse
entity Q654779
relation P112
action find_reverse
entity Q1812196
relation P112
['Q283666', 'P112', 'Q654779'] ['Q283666', 'P112', 'Q1812196']
ASK WHERE { resource:Q283666 property:P112 resource:Q654779 . resource:Q283666 property:P112 resource:Q1812196 }
de Havilland Geoffrey de Havilland Thelma Kalama
action is_in
entity de Havilland
action intersection
action find_reverse
entity Geoffrey de Havilland
relation founder
action find_reverse
entity Thelma Kalama
relation founder
['de Havilland', 'founder', 'Geoffrey de Havilland'] ['de Havilland', 'founder', 'Thelma Kalama']
ASK WHERE { resource:de_Havilland property:founder resource:Geoffrey_de_Havilland . resource:de_Havilland property:founder resource:Thelma_Kalama }
[]
common name
SYSTEM
YES and NO respectively
(Q283666,P112,Q654779) (Q283666,P112,Q1812196)
action is_in
entity Q283666
action intersection
action find_reverse
entity Q654779
relation P112
action find_reverse
entity Q1812196
relation P112
[ANSWER]
['Q283666', 'P112', 'Q654779'] ['Q283666', 'P112', 'Q1812196']
ASK WHERE { resource:Q283666 property:P112 resource:Q654779 . resource:Q283666 property:P112 resource:Q1812196 }
YES and NO respectively
action is_in
entity de Havilland
action intersection
action find_reverse
entity Geoffrey de Havilland
relation founder
action find_reverse
entity Thelma Kalama
relation founder
['de Havilland', 'founder', 'Geoffrey de Havilland'] ['de Havilland', 'founder', 'Thelma Kalama']
ASK WHERE { resource:de_Havilland property:founder resource:Geoffrey_de_Havilland . resource:de_Havilland property:founder resource:Thelma_Kalama }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7671799 Q283666
P749 P176
Q4830453
USER
Which business enterprises are the parent organizations of de Havilland or are the manufacturers of TS Patriot State ?
OR((Q283666,P749,c(Q4830453)), (Q7671799,P176,c(Q4830453)))
action filter_type
action union
action find
entity Q283666
relation P749
action find
entity Q7671799
relation P176
type Q4830453
{'OR': [['Q283666', 'P749', {'concept': 'Q4830453'}], ['Q7671799', 'P176', {'concept': 'Q4830453'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q283666 property:P749 ?r } UNION { resource:Q7671799 property:P176 ?r } } . ?r rdf:type ontology:Q4830453 }
TS Patriot State de Havilland
action filter_type
action union
action find
entity de Havilland
relation parent organization
action find
entity TS Patriot State
relation manufacturer
type business enterprise
{'OR': [['de Havilland', 'parent organization', {'concept': 'business enterprise'}], ['TS Patriot State', 'manufacturer', {'concept': 'business enterprise'}]]}
SELECT DISTINCT ?r WHERE { { { resource:de_Havilland property:parent_organization ?r } UNION { resource:TS_Patriot_State property:manufacturer ?r } } . ?r rdf:type ontology:business_enterprise }
[]
business enterprise
Q952062 Q4898067
SYSTEM
Hawker Siddeley, Bethlehem Sparrows Point Shipyard
Q952062 Q4898067
OR((Q283666,P749,c(Q4830453)), (Q7671799,P176,c(Q4830453)))
action filter_type
action union
action find
entity Q283666
relation P749
action find
entity Q7671799
relation P176
type Q4830453
[ANSWERS] are the parent organizations of de Havilland or are the manufacturers of TS Patriot State
{'OR': [['Q283666', 'P749', {'concept': 'Q4830453'}], ['Q7671799', 'P176', {'concept': 'Q4830453'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q283666 property:P749 ?r } UNION { resource:Q7671799 property:P176 ?r } } . ?r rdf:type ontology:Q4830453 }
Hawker Siddeley Bethlehem Sparrows Point Shipyard
Hawker Siddeley and Bethlehem Sparrows Point Shipyard are the parent organizations of de Havilland or are the manufacturers of TS Patriot State
Hawker Siddeley Bethlehem Sparrows Point Shipyard
action filter_type
action union
action find
entity de Havilland
relation parent organization
action find
entity TS Patriot State
relation manufacturer
type business enterprise
{'OR': [['de Havilland', 'parent organization', {'concept': 'business enterprise'}], ['TS Patriot State', 'manufacturer', {'concept': 'business enterprise'}]]}
SELECT DISTINCT ?r WHERE { { { resource:de_Havilland property:parent_organization ?r } UNION { resource:TS_Patriot_State property:manufacturer ?r } } . ?r rdf:type ontology:business_enterprise }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4898067
P452
Q268592
USER
Which industry does that business enterprise belong to ?
(Q4898067,P452,c(Q268592))
action filter_type
action find
entity Q4898067
relation P452
type Q268592
['Q4898067', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?b WHERE { resource:Q4898067 property:P452 ?b . ?b rdf:type ontology:Q268592 }
Bethlehem Sparrows Point Shipyard
action filter_type
action find
entity Bethlehem Sparrows Point Shipyard
relation industry
type economic branch
['Bethlehem Sparrows Point Shipyard', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?b WHERE { resource:Bethlehem_Sparrows_Point_Shipyard property:industry ?b . ?b rdf:type ontology:economic_branch }
[]
economic branch
Clarification for simple ques.
Q4898067
SYSTEM
Did you mean Bethlehem Sparrows Point Shipyard ?
Q952062 Q4898067
(Q952062,P452,c(Q268592)) (Q4898067,P452,c(Q268592))
[ANSWER]
['Q952062', 'P452', {'concept': 'Q268592'}] ['Q4898067', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?b WHERE { resource:Q4898067 property:P452 ?b . ?b rdf:type ontology:Q268592 }
Hawker Siddeley Bethlehem Sparrows Point Shipyard
Did you mean Bethlehem Sparrows Point Shipyard ?
Bethlehem Sparrows Point Shipyard
['Hawker Siddeley', 'industry', {'concept': 'economic branch'}] ['Bethlehem Sparrows Point Shipyard', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?b WHERE { resource:Bethlehem_Sparrows_Point_Shipyard property:industry ?b . ?b rdf:type ontology:economic_branch }
[]
Simple Question (Coreferenced)
USER
Yes
(Q4898067,P452,c(Q268592))
['Q4898067', 'P452', {'concept': 'Q268592'}]
['Bethlehem Sparrows Point Shipyard', 'industry', {'concept': 'economic branch'}]
[]
Q474200
SYSTEM
shipbuilding
Q474200
(Q4898067,P452,c(Q268592))
action filter_type
action find
entity Q4898067
relation P452
type Q268592
That business enterprise belongs to [ANSWER]
['Q4898067', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?b WHERE { resource:Q4898067 property:P452 ?b . ?b rdf:type ontology:Q268592 }
shipbuilding
That business enterprise belongs to shipbuilding
shipbuilding
action filter_type
action find
entity Bethlehem Sparrows Point Shipyard
relation industry
type economic branch
['Bethlehem Sparrows Point Shipyard', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?b WHERE { resource:Bethlehem_Sparrows_Point_Shipyard property:industry ?b . ?b rdf:type ontology:economic_branch }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P355
Q268592 Q43229
USER
How many organizations are around 1 economic branch the subsidiary of ?
(c(Q43229),P355,c(Q268592))
action count
action approx
action find_tuple_counts
relation P355
type Q43229
type Q268592
value 1
[{'concept': 'Q43229'}, 'P355', {'concept': 'Q268592'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?w ) WHERE { ?d property:P355 ?a . ?d rdf:type ontology:Q43229 . ?a rdf:type ontology:Q268592 } GROUP BY ?d } . FILTER ( ?w = 1 ) }
action count
action approx
action find_tuple_counts
relation subsidiary
type organization
type economic branch
value 1
[{'concept': 'organization'}, 'subsidiary', {'concept': 'economic branch'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?w ) WHERE { ?d property:subsidiary ?a . ?d rdf:type ontology:organization . ?a rdf:type ontology:economic_branch } GROUP BY ?d } . FILTER ( ?w = 1 ) }
[]
economic branch organization
SYSTEM
14
Q2299942 Q921716 Q919935 Q338633 Q616340 Q566857 Q283852 Q160229 Q1378683 Q122141 Q169167 Q35476 Q593786 Q895325
(c(Q43229),P355,c(Q268592))
action count
action approx
action find_tuple_counts
relation P355
type Q43229
type Q268592
value 1
[ANSWER]
[{'concept': 'Q43229'}, 'P355', {'concept': 'Q268592'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?w ) WHERE { ?d property:P355 ?a . ?d rdf:type ontology:Q43229 . ?a rdf:type ontology:Q268592 } GROUP BY ?d } . FILTER ( ?w = 1 ) }
Maroc Telecom Global Telecom Holding Ooredoo KPN Telenet Proximus Group Turkcell Telefónica Euskaltel Vodafone Metro AG AT&T BT Group Bouygues
14
action count
action approx
action find_tuple_counts
relation subsidiary
type organization
type economic branch
value 1
[{'concept': 'organization'}, 'subsidiary', {'concept': 'economic branch'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?w ) WHERE { ?d property:subsidiary ?a . ?d rdf:type ontology:organization . ?a rdf:type ontology:economic_branch } GROUP BY ?d } . FILTER ( ?w = 1 ) }
[]