Simple Question (Direct)
Simple Question
Q21761094
P682
Q1057
USER
What biological processes are UDP-glucose 6-dehydrogenase    PA2022 involved in ?
(Q21761094,P682,c(Q1057))
action filter_type
action find
entity Q21761094
relation P682
type Q1057
['Q21761094', 'P682', {'concept': 'Q1057'}]
SELECT DISTINCT ?g WHERE { resource:Q21761094 property:P682 ?g . ?g rdf:type ontology:Q1057 }
UDP-glucose 6-dehydrogenase    PA2022
action filter_type
action find
entity UDP-glucose 6-dehydrogenase    PA2022
relation biological process
type metabolic process
['UDP-glucose 6-dehydrogenase    PA2022', 'biological process', {'concept': 'metabolic process'}]
SELECT DISTINCT ?g WHERE { resource:UDP-glucose_6-dehydrogenase____PA2022 property:biological_process ?g . ?g rdf:type ontology:metabolic_process }
[]
metabolic process
Q14762260 Q14349764
SYSTEM
carbohydrate metabolic process, oxidation-reduction process
Q14762260 Q14349764
(Q21761094,P682,c(Q1057))
action filter_type
action find
entity Q21761094
relation P682
type Q1057
The [ANSWERS] are UDP-glucose 6-dehydrogenase PA2022 involved in
['Q21761094', 'P682', {'concept': 'Q1057'}]
SELECT DISTINCT ?g WHERE { resource:Q21761094 property:P682 ?g . ?g rdf:type ontology:Q1057 }
carbohydrate metabolic process oxidation-reduction process
The carbohydrate metabolic process and oxidation-reduction process are UDP-glucose 6-dehydrogenase PA2022 involved in
carbohydrate metabolic process oxidation-reduction process
action filter_type
action find
entity UDP-glucose 6-dehydrogenase    PA2022
relation biological process
type metabolic process
['UDP-glucose 6-dehydrogenase    PA2022', 'biological process', {'concept': 'metabolic process'}]
SELECT DISTINCT ?g WHERE { resource:UDP-glucose_6-dehydrogenase____PA2022 property:biological_process ?g . ?g rdf:type ontology:metabolic_process }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21761094
P703
Q16521
USER
Which taxon is that nutrient found in ?
(Q14762260,P703,c(Q16521)) (Q14349764,P703,c(Q16521))
action filter_type
action find
entity Q21761094
relation P703
type Q16521
['Q14762260', 'P703', {'concept': 'Q16521'}] ['Q14349764', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?n WHERE { resource:Q21761094 property:P703 ?n . ?n rdf:type ontology:Q16521 }
UDP-glucose 6-dehydrogenase    PA2022
action filter_type
action find
entity UDP-glucose 6-dehydrogenase    PA2022
relation found in taxon
type taxon
['carbohydrate metabolic process', 'found in taxon', {'concept': 'taxon'}] ['oxidation-reduction process', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?n WHERE { resource:UDP-glucose_6-dehydrogenase____PA2022 property:found_in_taxon ?n . ?n rdf:type ontology:taxon }
[]
taxon
Q21065234
SYSTEM
Pseudomonas aeruginosa PAO1
Q21065234
(Q14762260,P703,c(Q16521)) (Q14349764,P703,c(Q16521))
action filter_type
action find
entity Q21761094
relation P703
type Q16521
That nutrient is found in [ANSWER]
['Q14762260', 'P703', {'concept': 'Q16521'}] ['Q14349764', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?n WHERE { resource:Q21761094 property:P703 ?n . ?n rdf:type ontology:Q16521 }
Pseudomonas aeruginosa PAO1
That nutrient is found in Pseudomonas aeruginosa PAO1
Pseudomonas aeruginosa PAO1
action filter_type
action find
entity UDP-glucose 6-dehydrogenase    PA2022
relation found in taxon
type taxon
['carbohydrate metabolic process', 'found in taxon', {'concept': 'taxon'}] ['oxidation-reduction process', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?n WHERE { resource:UDP-glucose_6-dehydrogenase____PA2022 property:found_in_taxon ?n . ?n rdf:type ontology:taxon }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q3930188
P180
Q16521 Q3516658
USER
How many heraldic symbols express lesser number of taxons than turnip ?
(c(Q3516658),P180,c(Q16521))
action count
action less
action find_tuple_counts
relation P180
type Q3516658
type Q16521
action count
action filter_type
action find
entity Q3930188
relation P180
type Q16521
[{'concept': 'Q3516658'}, 'P180', {'concept': 'Q16521'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?j ) WHERE { ?o property:P180 ?h . ?h rdf:type ontology:Q16521 . ?o rdf:type ontology:Q3516658 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:Q3930188 property:P180 ?g . ?g rdf:type ontology:Q16521 } } . FILTER ( ?j < ?t ) }
turnip
action count
action less
action find_tuple_counts
relation depicts
type heraldic symbol
type taxon
action count
action filter_type
action find
entity turnip
relation depicts
type taxon
[{'concept': 'heraldic symbol'}, 'depicts', {'concept': 'taxon'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?j ) WHERE { ?o property:depicts ?h . ?h rdf:type ontology:taxon . ?o rdf:type ontology:heraldic_symbol } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:turnip property:depicts ?g . ?g rdf:type ontology:taxon } } . FILTER ( ?j < ?t ) }
[]
taxon heraldic symbol
SYSTEM
68
Q557051 Q3631010 Q949516 Q3743219 Q1531829 Q3972936 Q3685083 Q3967285 Q3657778 Q3846728 Q3860189 Q3908677 Q3738545 Q3630953 Q25409362 Q997698 Q3898919 Q3715134 Q3696963 Q3859462 Q4009696 Q1574285 Q3539700 Q676215 Q1533358 Q2137363 Q989540 Q3954964 Q3877676 Q1634010 Q27347239 Q3607618 Q3849985 Q1258214 Q2963691 Q3950303 Q2135212 Q27625064 Q2226240 Q3700771 Q3995120 Q3643394 Q1493940 Q1070435 Q1031296 Q3993705 Q3621132 Q3411703 Q1341768 Q3855073 Q3925764 Q3749232 Q27347287 Q1382857 Q2379167 Q3143703 Q3765054 Q27192577 Q3693964 Q3853255 Q15825380 Q3757590 Q3778797 Q14906602 Q15851470 Q3998613 Q3747919 Q458448
(c(Q3516658),P180,c(Q16521))
action count
action less
action find_tuple_counts
relation P180
type Q3516658
type Q16521
action count
action filter_type
action find
entity Q3930188
relation P180
type Q16521
[ANSWER]
[{'concept': 'Q3516658'}, 'P180', {'concept': 'Q16521'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?j ) WHERE { ?o property:P180 ?h . ?h rdf:type ontology:Q16521 . ?o rdf:type ontology:Q3516658 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:Q3930188 property:P180 ?g . ?g rdf:type ontology:Q16521 } } . FILTER ( ?j < ?t ) }
anchor hazelnut globus cruciger millrind bell morning star compass spur Jewish hat sea millstone gate scythe forearm Geryon book pilgrim viking ship kremlin mitre weather vane hand Triton arm harpy rainbow saw wild man Gordian knot horseshoe crozier halberd hammer trident Chimera portcullis rake chapel saddle die tower left arm garb cherubim mermaid torch Boreas pegasus angel Mercury chape strawberry lance sword pillar Hydra yoke beehive crown of thorns mace Saint Lawrence galley warrior acorn open triangle caltrap scissors anvil
68
action count
action less
action find_tuple_counts
relation depicts
type heraldic symbol
type taxon
action count
action filter_type
action find
entity turnip
relation depicts
type taxon
[{'concept': 'heraldic symbol'}, 'depicts', {'concept': 'taxon'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?j ) WHERE { ?o property:depicts ?h . ?h rdf:type ontology:taxon . ?o rdf:type ontology:heraldic_symbol } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:turnip property:depicts ?g . ?g rdf:type ontology:taxon } } . FILTER ( ?j < ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q15587177
P566
Q82799 Q16521
USER
Which names are a basionyms of lesser number of taxons than Chenopodium gubanovii ?
(c(Q16521),P566,c(Q82799))
action less
action find_reverse_tuple_counts
relation P566
type Q82799
type Q16521
action count
action filter_type
action find_reverse
entity Q15587177
relation P566
type Q16521
[{'concept': 'Q16521'}, 'P566', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:P566 resource:Q15587177 . ?s rdf:type ontology:Q16521 } } . FILTER ( ?j < ?e ) . { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P566 ?z . ?z rdf:type ontology:Q82799 . ?r rdf:type ontology:Q16521 } GROUP BY ?z } }
Chenopodium gubanovii
action less
action find_reverse_tuple_counts
relation basionym
type name
type taxon
action count
action filter_type
action find_reverse
entity Chenopodium gubanovii
relation basionym
type taxon
[{'concept': 'taxon'}, 'basionym', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:basionym resource:Chenopodium_gubanovii . ?s rdf:type ontology:taxon } } . FILTER ( ?j < ?e ) . { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:basionym ?z . ?z rdf:type ontology:name . ?r rdf:type ontology:taxon } GROUP BY ?z } }
[]
name taxon
Q15629400 Q12954907 Q22915049
SYSTEM
Dimorphotheca ecklonis, Polygonum bistorta, Polianthes michoacana
Q12954907 Q22915049 Q7226458 Q159107 Q157851 Q15250904 Q16484730 Q7170299 Q11099680 Q15629400 Q134609
(c(Q16521),P566,c(Q82799))
action less
action find_reverse_tuple_counts
relation P566
type Q82799
type Q16521
action count
action filter_type
action find_reverse
entity Q15587177
relation P566
type Q16521
[ANSWERS] are a basionyms of lesser number of taxons than Chenopodium gubanovii
[{'concept': 'Q16521'}, 'P566', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:P566 resource:Q15587177 . ?s rdf:type ontology:Q16521 } } . FILTER ( ?j < ?e ) . { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P566 ?z . ?z rdf:type ontology:Q82799 . ?r rdf:type ontology:Q16521 } GROUP BY ?z } }
Polygonum bistorta Polianthes michoacana Polygonum cespitosum Hieracium aurantiacum Glaux maritima Polygonum manshuriense Abutilon striatum Persicaria affinis Polygonum perfoliatum Dimorphotheca ecklonis Cynara scolymus
Dimorphotheca ecklonis, Polygonum bistorta and Polianthes michoacana are a basionyms of lesser number of taxons than Chenopodium gubanovii
Dimorphotheca ecklonis Polygonum bistorta Polianthes michoacana
action less
action find_reverse_tuple_counts
relation basionym
type name
type taxon
action count
action filter_type
action find_reverse
entity Chenopodium gubanovii
relation basionym
type taxon
[{'concept': 'taxon'}, 'basionym', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:basionym resource:Chenopodium_gubanovii . ?s rdf:type ontology:taxon } } . FILTER ( ?j < ?e ) . { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:basionym ?z . ?z rdf:type ontology:name . ?r rdf:type ontology:taxon } GROUP BY ?z } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q15571943
P566
Q82799 Q16521
USER
And what about Anthemis brevicuspis?
(c(Q16521),P566,c(Q82799))
action less
action find_reverse_tuple_counts
relation P566
type Q82799
type Q16521
action count
action filter_type
action find_reverse
entity Q15571943
relation P566
type Q16521
[{'concept': 'Q16521'}, 'P566', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t rdf:type ontology:Q16521 . ?t property:P566 resource:Q15571943 } } . FILTER ( ?b < ?j ) . { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?b ) WHERE { ?e rdf:type ontology:Q82799 . ?d rdf:type ontology:Q16521 . ?d property:P566 ?e } GROUP BY ?e } }
Anthemis brevicuspis
action less
action find_reverse_tuple_counts
relation basionym
type name
type taxon
action count
action filter_type
action find_reverse
entity Anthemis brevicuspis
relation basionym
type taxon
[{'concept': 'taxon'}, 'basionym', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t rdf:type ontology:taxon . ?t property:basionym resource:Anthemis_brevicuspis } } . FILTER ( ?b < ?j ) . { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?b ) WHERE { ?e rdf:type ontology:name . ?d rdf:type ontology:taxon . ?d property:basionym ?e } GROUP BY ?e } }
[]
name taxon
Q15629400 Q12954907 Q22915049
SYSTEM
Dimorphotheca ecklonis, Polygonum bistorta, Polianthes michoacana
Q12954907 Q22915049 Q7226458 Q159107 Q157851 Q15250904 Q16484730 Q7170299 Q11099680 Q15629400 Q134609
(c(Q16521),P566,c(Q82799))
action less
action find_reverse_tuple_counts
relation P566
type Q82799
type Q16521
action count
action filter_type
action find_reverse
entity Q15571943
relation P566
type Q16521
[ANSWERS]
[{'concept': 'Q16521'}, 'P566', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t rdf:type ontology:Q16521 . ?t property:P566 resource:Q15571943 } } . FILTER ( ?b < ?j ) . { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?b ) WHERE { ?e rdf:type ontology:Q82799 . ?d rdf:type ontology:Q16521 . ?d property:P566 ?e } GROUP BY ?e } }
Polygonum bistorta Polianthes michoacana Polygonum cespitosum Hieracium aurantiacum Glaux maritima Polygonum manshuriense Abutilon striatum Persicaria affinis Polygonum perfoliatum Dimorphotheca ecklonis Cynara scolymus
Dimorphotheca ecklonis Polygonum bistorta Polianthes michoacana
action less
action find_reverse_tuple_counts
relation basionym
type name
type taxon
action count
action filter_type
action find_reverse
entity Anthemis brevicuspis
relation basionym
type taxon
[{'concept': 'taxon'}, 'basionym', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { ?t rdf:type ontology:taxon . ?t property:basionym resource:Anthemis_brevicuspis } } . FILTER ( ?b < ?j ) . { SELECT DISTINCT ?e ( COUNT ( ?d ) AS ?b ) WHERE { ?e rdf:type ontology:name . ?d rdf:type ontology:taxon . ?d property:basionym ?e } GROUP BY ?e } }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P566
Q82799 Q82799
USER
Which names are a basionyms of approximately the same number of names as that name ?
(c(Q82799),P566,c(Q82799))
[{'concept': 'Q82799'}, 'P566', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { ?z property:Q810198 ?z . ?z rdf:type ontology:Q82799 }
[{'concept': 'name'}, 'basionym', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { ?z property:basionym ?z . ?z rdf:type ontology:name }
[]
name name
Comparative|More/Less|Single entity type|Clarification
Q12954907
SYSTEM
Did you mean Polygonum bistorta ?
(c(Q82799),P566,c(Q82799))
[ANSWER]
[{'concept': 'Q82799'}, 'P566', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { ?z property:Q810198 ?z . ?z rdf:type ontology:Q82799 }
Did you mean Polygonum bistorta ?
Polygonum bistorta
[{'concept': 'name'}, 'basionym', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { ?z property:basionym ?z . ?z rdf:type ontology:name }
[]
Comparative Reasoning (All)
USER
No, I meant Dimorphotheca ecklonis. Could you tell me the answer for that?
(c(Q82799),P566,c(Q82799))
Q15629400
[{'concept': 'Q82799'}, 'P566', {'concept': 'Q82799'}]
[{'concept': 'name'}, 'basionym', {'concept': 'name'}]
[]
Q15629400 Q17243481 Q12954907
SYSTEM
Dimorphotheca ecklonis, Rhagodia hastata, Polygonum bistorta
Q17243481 Q12954907 Q22915049 Q23455986 Q23764842 Q19849746 Q7226458 Q22665879 Q23764973 Q24056509 Q2110890 Q159107 Q10898709 Q10891753 Q21876720 Q157851 Q15250904 Q8964445 Q16484730 Q21876734 Q7170299 Q11099680 Q15629400 Q21877025 Q10906008 Q21872305 Q24006173
(c(Q82799),P566,c(Q82799))
[ANSWERS] are a basionyms of approximately the same number of names as that name
[{'concept': 'Q82799'}, 'P566', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { ?z property:Q810198 ?z . ?z rdf:type ontology:Q82799 }
Rhagodia hastata Polygonum bistorta Polianthes michoacana Hyacinthus nanus Apicra rubriflora Kochia californica Polygonum cespitosum Polygonum alpinum Polyporus pes-caprae Agaricus inquilinus Polygonum sagittatum Hieracium aurantiacum Chenopodium aristatum Kochia krylovii Polygonum arifolium Glaux maritima Polygonum manshuriense Gnaphalium luteoalbum Abutilon striatum Polygonum articulatum Persicaria affinis Polygonum perfoliatum Dimorphotheca ecklonis Polygonum viviparum Serratula chinensis Chenopodium hirsutum Convolvulus corymbosus
Dimorphotheca ecklonis, Rhagodia hastata and Polygonum bistorta are a basionyms of approximately the same number of names as that name
Dimorphotheca ecklonis Rhagodia hastata Polygonum bistorta
[{'concept': 'name'}, 'basionym', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { ?z property:basionym ?z . ?z rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q39546 Q2221906 Q82799
USER
Which names have max number of tools and geographic locations as their namesake ?
(c(Q82799),P138,c(Q39546)|c(Q2221906))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q39546
action find_tuple_counts
relation P138
type Q82799
type Q2221906
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q39546'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?u WHERE { FILTER ( ?x = ?n ) . { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { { ?u property:P138 ?m . ?u rdf:type ontology:Q82799 . ?m rdf:type ontology:Q39546 } UNION { ?u property:P138 ?m . ?u rdf:type ontology:Q82799 . ?m rdf:type ontology:Q2221906 } } GROUP BY ?u } . { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?i ) WHERE { { ?t property:P138 ?v . ?v rdf:type ontology:Q39546 . ?t rdf:type ontology:Q82799 } UNION { ?t property:P138 ?v . ?t rdf:type ontology:Q82799 . ?v rdf:type ontology:Q2221906 } } GROUP BY ?t } } }
action argmax
action union
action find_tuple_counts
relation named after
type name
type tool
action find_tuple_counts
relation named after
type name
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'tool'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?u WHERE { FILTER ( ?x = ?n ) . { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { { ?u property:named_after ?m . ?u rdf:type ontology:name . ?m rdf:type ontology:tool } UNION { ?u property:named_after ?m . ?u rdf:type ontology:name . ?m rdf:type ontology:geographic_location } } GROUP BY ?u } . { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?i ) WHERE { { ?t property:named_after ?v . ?v rdf:type ontology:tool . ?t rdf:type ontology:name } UNION { ?t property:named_after ?v . ?t rdf:type ontology:name . ?v rdf:type ontology:geographic_location } } GROUP BY ?t } } }
[]
tool geographic location name
Q22922124 Q25058808 Q21493520
SYSTEM
von Mecklenburg-Schwerin, Dumoulin, Bergmann
Q25058808 Q21493520 Q17625919 Q22922124
(c(Q82799),P138,c(Q39546)|c(Q2221906))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q39546
action find_tuple_counts
relation P138
type Q82799
type Q2221906
[ANSWERS] have max number of tools and geographic locations as their namesake
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q39546'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?u WHERE { FILTER ( ?x = ?n ) . { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { { ?u property:P138 ?m . ?u rdf:type ontology:Q82799 . ?m rdf:type ontology:Q39546 } UNION { ?u property:P138 ?m . ?u rdf:type ontology:Q82799 . ?m rdf:type ontology:Q2221906 } } GROUP BY ?u } . { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?i ) WHERE { { ?t property:P138 ?v . ?v rdf:type ontology:Q39546 . ?t rdf:type ontology:Q82799 } UNION { ?t property:P138 ?v . ?t rdf:type ontology:Q82799 . ?v rdf:type ontology:Q2221906 } } GROUP BY ?t } } }
Dumoulin Bergmann Du Moulin von Mecklenburg-Schwerin
Von Mecklenburg-Schwerin, Dumoulin and Bergmann have max number of tools and geographic locations as their namesake
von Mecklenburg-Schwerin Dumoulin Bergmann
action argmax
action union
action find_tuple_counts
relation named after
type name
type tool
action find_tuple_counts
relation named after
type name
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'tool'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?u WHERE { FILTER ( ?x = ?n ) . { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { { ?u property:named_after ?m . ?u rdf:type ontology:name . ?m rdf:type ontology:tool } UNION { ?u property:named_after ?m . ?u rdf:type ontology:name . ?m rdf:type ontology:geographic_location } } GROUP BY ?u } . { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?i ) WHERE { { ?t property:named_after ?v . ?v rdf:type ontology:tool . ?t rdf:type ontology:name } UNION { ?t property:named_after ?v . ?t rdf:type ontology:name . ?v rdf:type ontology:geographic_location } } GROUP BY ?t } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q22922124 Q25058808 Q21493520
P734
Q502895
USER
Who have those ones as their family name ?
(c(Q502895),P734,Q22922124) (c(Q502895),P734,Q25058808) (c(Q502895),P734,Q21493520)
action filter_type
action find_reverse
entity prev_answer
relation P734
type Q502895
[{'concept': 'Q502895'}, 'P734', 'Q22922124'] [{'concept': 'Q502895'}, 'P734', 'Q25058808'] [{'concept': 'Q502895'}, 'P734', 'Q21493520']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . VALUES ( ?y ) { ( resource:Q25058808 ) ( resource:Q21493520 ) ( resource:Q17625919 ) } . ?t property:P734 ?y }
von Mecklenburg-Schwerin Dumoulin Bergmann
action filter_type
action find_reverse
entity prev_answer
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'von Mecklenburg-Schwerin'] [{'concept': 'common name'}, 'family name', 'Dumoulin'] [{'concept': 'common name'}, 'family name', 'Bergmann']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . VALUES ( ?y ) { ( resource:Dumoulin ) ( resource:Bergmann ) ( resource:Du_Moulin ) } . ?t property:family_name ?y }
[]
common name
Q356311 Q2065406 Q571387
SYSTEM
Samuel Dumoulin, Anton Bergmann, Johann VII, Duke of Mecklenburg
Q571387 Q16647360 Q3106046 Q1766598 Q18325215 Q2833641 Q2493829 Q3287966 Q6756088 Q3421264 Q3102645 Q3350989 Q3384373 Q2341395 Q20204240 Q3009736 Q675310 Q3384862 Q16011142 Q3592733 Q356311 Q16028416 Q15227518 Q1462886 Q2065406
(c(Q502895),P734,Q22922124) (c(Q502895),P734,Q25058808) (c(Q502895),P734,Q21493520)
action filter_type
action find_reverse
entity prev_answer
relation P734
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P734', 'Q22922124'] [{'concept': 'Q502895'}, 'P734', 'Q25058808'] [{'concept': 'Q502895'}, 'P734', 'Q21493520']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . VALUES ( ?y ) { ( resource:Q25058808 ) ( resource:Q21493520 ) ( resource:Q17625919 ) } . ?t property:P734 ?y }
Johann VII, Duke of Mecklenburg David Dumoulin Gilles-Maurice Dumoulin Louis Dumoulin Alain Dumoulin Alexandre Dumoulin Franck Dumoulin Marc Dumoulin Marcel Dumoulin Raymonde Dumoulin Georges Dumoulin Olivier Dumoulin Pierre Charles Dumoulin Charles Dumoulin Pierre, Mathieu, Philippe, Joseph Dumoulin Cécile Dumoulin Cyril Dumoulin Pierre Du Moulin Charles Dumoulin Évariste Dumoulin Samuel Dumoulin Georges Dumoulin Marianne Dumoulin Friedrich Wilhelm Bergmann Anton Bergmann
Samuel Dumoulin, Anton Bergmann and Johann VII, Duke of Mecklenburg have those ones as their family name
Samuel Dumoulin Anton Bergmann Johann VII, Duke of Mecklenburg
action filter_type
action find_reverse
entity prev_answer
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'von Mecklenburg-Schwerin'] [{'concept': 'common name'}, 'family name', 'Dumoulin'] [{'concept': 'common name'}, 'family name', 'Bergmann']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . VALUES ( ?y ) { ( resource:Dumoulin ) ( resource:Bergmann ) ( resource:Du_Moulin ) } . ?t property:family_name ?y }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2065406
P7
Q502895
USER
Who is the brother of that one ?
(Q2065406,P7,c(Q502895))
action filter_type
action find
entity Q2065406
relation P7
type Q502895
['Q2065406', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q2065406 property:P7 ?h . ?h rdf:type ontology:Q502895 }
Anton Bergmann
action filter_type
action find
entity Anton Bergmann
relation brother
type common name
['Anton Bergmann', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Anton_Bergmann property:brother ?h . ?h rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q2065406
SYSTEM
Did you mean Anton Bergmann ?
Q356311 Q2065406 Q571387
(Q356311,P7,c(Q502895)) (Q2065406,P7,c(Q502895)) (Q571387,P7,c(Q502895))
[ANSWER]
['Q356311', 'P7', {'concept': 'Q502895'}] ['Q2065406', 'P7', {'concept': 'Q502895'}] ['Q571387', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q2065406 property:P7 ?h . ?h rdf:type ontology:Q502895 }
Samuel Dumoulin Anton Bergmann Johann VII, Duke of Mecklenburg
Did you mean Anton Bergmann ?
Anton Bergmann
['Samuel Dumoulin', 'brother', {'concept': 'common name'}] ['Anton Bergmann', 'brother', {'concept': 'common name'}] ['Johann VII, Duke of Mecklenburg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Anton_Bergmann property:brother ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2065406,P7,c(Q502895))
['Q2065406', 'P7', {'concept': 'Q502895'}]
['Anton Bergmann', 'brother', {'concept': 'common name'}]
[]
Q11308571
SYSTEM
Ernest Bergmann
Q11308571
(Q2065406,P7,c(Q502895))
action filter_type
action find
entity Q2065406
relation P7
type Q502895
The brother of that one is the [ANSWER]
['Q2065406', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q2065406 property:P7 ?h . ?h rdf:type ontology:Q502895 }
Ernest Bergmann
The brother of that one is the Ernest Bergmann
Ernest Bergmann
action filter_type
action find
entity Anton Bergmann
relation brother
type common name
['Anton Bergmann', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Anton_Bergmann property:brother ?h . ?h rdf:type ontology:common_name }
[]