Simple Question (Direct)
Simple Question
Q7527113
P106
Q12737077
USER
What is the profession of Sir Henry Cavendish, 2nd Baronet ?
(Q7527113,P106,c(Q12737077))
action filter_type
action find
entity Q7527113
relation P106
type Q12737077
['Q7527113', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q7527113 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Sir Henry Cavendish, 2nd Baronet
action filter_type
action find
entity Sir Henry Cavendish, 2nd Baronet
relation occupation
type occupation
['Sir Henry Cavendish, 2nd Baronet', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Sir_Henry_Cavendish,_2nd_Baronet property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q7527113,P106,c(Q12737077))
action filter_type
action find
entity Q7527113
relation P106
type Q12737077
The profession of Sir Henry Cavendish , 2nd Baronet is a [ANSWER]
['Q7527113', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q7527113 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
politician
The profession of Sir Henry Cavendish , 2nd Baronet is a politician
politician
action filter_type
action find
entity Sir Henry Cavendish, 2nd Baronet
relation occupation
type occupation
['Sir Henry Cavendish, 2nd Baronet', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Sir_Henry_Cavendish,_2nd_Baronet property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7527113
P921
Q191067
USER
Which article is that person a main subject of ?
(c(Q191067),P921,Q82955)
action filter_type
action find_reverse
entity Q7527113
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q82955']
SELECT DISTINCT ?j WHERE { ?j property:P921 resource:Q7527113 . ?j rdf:type ontology:Q191067 }
Sir Henry Cavendish, 2nd Baronet
action filter_type
action find_reverse
entity Sir Henry Cavendish, 2nd Baronet
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'politician']
SELECT DISTINCT ?j WHERE { ?j property:main_subject resource:Sir_Henry_Cavendish,_2nd_Baronet . ?j rdf:type ontology:article }
[]
article
Q19027774
SYSTEM
Cavendish, Henry (1732-1804) (DNB00)
Q19027774
(c(Q191067),P921,Q82955)
action filter_type
action find_reverse
entity Q7527113
relation P921
type Q191067
[ANSWER] is that person a main subject of
[{'concept': 'Q191067'}, 'P921', 'Q82955']
SELECT DISTINCT ?j WHERE { ?j property:P921 resource:Q7527113 . ?j rdf:type ontology:Q191067 }
Cavendish, Henry (1732-1804) (DNB00)
Cavendish, Henry (1732-1804) (DNB00) is that person a main subject of
Cavendish, Henry (1732-1804) (DNB00)
action filter_type
action find_reverse
entity Sir Henry Cavendish, 2nd Baronet
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'politician']
SELECT DISTINCT ?j WHERE { ?j property:main_subject resource:Sir_Henry_Cavendish,_2nd_Baronet . ?j rdf:type ontology:article }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q82955
P106
Q8436 Q12737077
USER
How many families and occupations have politician as his/her means of employment ?
(c(Q8436),P106,Q82955) (c(Q12737077),P106,Q82955)
action count
action union
action filter_type
action find_reverse
entity Q82955
relation P106
type Q8436
action filter_type
action find_reverse
entity Q82955
relation P106
type Q12737077
[{'concept': 'Q8436'}, 'P106', 'Q82955'] [{'concept': 'Q12737077'}, 'P106', 'Q82955']
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { ?r rdf:type ontology:Q12737077 . ?r property:P106 resource:Q82955 } UNION { ?r property:P106 resource:Q82955 . ?r rdf:type ontology:Q8436 } }
politician
action count
action union
action filter_type
action find_reverse
entity politician
relation occupation
type family
action filter_type
action find_reverse
entity politician
relation occupation
type occupation
[{'concept': 'family'}, 'occupation', 'politician'] [{'concept': 'occupation'}, 'occupation', 'politician']
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { ?r rdf:type ontology:occupation . ?r property:occupation resource:politician } UNION { ?r property:occupation resource:politician . ?r rdf:type ontology:family } }
[]
family occupation
SYSTEM
5 families and 3 occupations
Q6242064 Q110831 Q16826559 Q5334981 Q13710953 Q5199072 Q1091736 Q7330364
(c(Q8436),P106,Q82955) (c(Q12737077),P106,Q82955)
action count
action union
action filter_type
action find_reverse
entity Q82955
relation P106
type Q8436
action filter_type
action find_reverse
entity Q82955
relation P106
type Q12737077
[ANSWER]
[{'concept': 'Q8436'}, 'P106', 'Q82955'] [{'concept': 'Q12737077'}, 'P106', 'Q82955']
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { ?r rdf:type ontology:Q12737077 . ?r property:P106 resource:Q82955 } UNION { ?r property:P106 resource:Q82955 . ?r rdf:type ontology:Q8436 } }
John Jones and Doria Deighton-Jones Andreas Gaill Chief Commissioner of Rodrigues Ed J. Davenport and Harriett Davenport President of the Balearic Islands President of the Region of Murcia House of Évreux Richards–Young family
5 families and 3 occupations
action count
action union
action filter_type
action find_reverse
entity politician
relation occupation
type family
action filter_type
action find_reverse
entity politician
relation occupation
type occupation
[{'concept': 'family'}, 'occupation', 'politician'] [{'concept': 'occupation'}, 'occupation', 'politician']
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { ?r rdf:type ontology:occupation . ?r property:occupation resource:politician } UNION { ?r property:occupation resource:politician . ?r rdf:type ontology:family } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2961580
P921
Q12737077 Q838948 Q191067
USER
Which occupations were the main subjects of greater number of works of art and articles 's work than taxi driver ?
(c(Q838948)|c(Q191067),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q2961580
relation P921
type Q838948
type Q191067
[[{'concept': 'Q838948'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?k WHERE { { ?t property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q838948 } UNION { ?t property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q191067 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:P921 resource:Q2961580 . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q191067 ) } } } } . FILTER ( ?l > ?i ) }
taxi driver
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity taxi driver
relation main subject
type work of art
type article
[[{'concept': 'work of art'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?k WHERE { { ?t property:main_subject ?k . ?k rdf:type ontology:occupation . ?t rdf:type ontology:work_of_art } UNION { ?t property:main_subject ?k . ?k rdf:type ontology:occupation . ?t rdf:type ontology:article } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:main_subject resource:taxi_driver . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:article ) } } } } . FILTER ( ?l > ?i ) }
[]
occupation work of art article
Q1930187 Q16746569 Q33231
SYSTEM
journalist, high school student, photographer
Q33999 Q1930187 Q9402 Q101539 Q164236 Q16746569 Q16003605 Q33231 Q16003532
(c(Q838948)|c(Q191067),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q2961580
relation P921
type Q838948
type Q191067
[ANSWERS] were the main subjects of greater number of works of art and articles 's work than taxi driver
[[{'concept': 'Q838948'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?k WHERE { { ?t property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q838948 } UNION { ?t property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q191067 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:P921 resource:Q2961580 . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q191067 ) } } } } . FILTER ( ?l > ?i ) }
actor journalist ninja flight attendant war correspondent high school student elementary school student photographer middle school student
Journalist, high school student and photographer were the main subjects of greater number of works of art and articles 's work than taxi driver
journalist high school student photographer
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity taxi driver
relation main subject
type work of art
type article
[[{'concept': 'work of art'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?k WHERE { { ?t property:main_subject ?k . ?k rdf:type ontology:occupation . ?t rdf:type ontology:work_of_art } UNION { ?t property:main_subject ?k . ?k rdf:type ontology:occupation . ?t rdf:type ontology:article } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:main_subject resource:taxi_driver . { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:article ) } } } } . FILTER ( ?l > ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q510373
P921
Q12737077 Q838948 Q191067
USER
And also tell me about Lord High Steward?
(c(Q838948)|c(Q191067),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q510373
relation P921
type Q838948
type Q191067
[[{'concept': 'Q838948'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:P921 resource:Q510373 . { { ?l rdf:type ontology:Q191067 } UNION { ?l rdf:type ontology:Q838948 } } } } . FILTER ( ?u > ?e ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) ?a WHERE { VALUES ( ?y ) { ( ontology:Q191067 ) ( ontology:Q838948 ) } . ?w rdf:type ?y } GROUP BY ?a } }
Lord High Steward
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity Lord High Steward
relation main subject
type work of art
type article
[[{'concept': 'work of art'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:main_subject resource:Lord_High_Steward . { { ?l rdf:type ontology:article } UNION { ?l rdf:type ontology:work_of_art } } } } . FILTER ( ?u > ?e ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) ?a WHERE { VALUES ( ?y ) { ( ontology:article ) ( ontology:work_of_art ) } . ?w rdf:type ?y } GROUP BY ?a } }
[]
occupation work of art article
Q1930187 Q16746569 Q33231
SYSTEM
journalist, high school student, photographer
Q33999 Q1930187 Q9402 Q101539 Q164236 Q16746569 Q16003605 Q33231 Q16003532
(c(Q838948)|c(Q191067),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q510373
relation P921
type Q838948
type Q191067
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:P921 resource:Q510373 . { { ?l rdf:type ontology:Q191067 } UNION { ?l rdf:type ontology:Q838948 } } } } . FILTER ( ?u > ?e ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) ?a WHERE { VALUES ( ?y ) { ( ontology:Q191067 ) ( ontology:Q838948 ) } . ?w rdf:type ?y } GROUP BY ?a } }
actor journalist ninja flight attendant war correspondent high school student elementary school student photographer middle school student
journalist high school student photographer
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity Lord High Steward
relation main subject
type work of art
type article
[[{'concept': 'work of art'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:main_subject resource:Lord_High_Steward . { { ?l rdf:type ontology:article } UNION { ?l rdf:type ontology:work_of_art } } } } . FILTER ( ?u > ?e ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) ?a WHERE { VALUES ( ?y ) { ( ontology:article ) ( ontology:work_of_art ) } . ?w rdf:type ?y } GROUP BY ?a } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19115123 Q19027774
P1433
Q5292
USER
Which encyclopedias contains Cavendish, Henry (1732-1804) (DNB00) or Rudd, Thomas (DNB00) ?
OR((Q19027774,P1433,c(Q5292)), (Q19115123,P1433,c(Q5292)))
action filter_type
action union
action find
entity Q19027774
relation P1433
action find
entity Q19115123
relation P1433
type Q5292
{'OR': [['Q19027774', 'P1433', {'concept': 'Q5292'}], ['Q19115123', 'P1433', {'concept': 'Q5292'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q19027774 property:P1433 ?u } UNION { resource:Q19115123 property:P1433 ?u } } . ?u rdf:type ontology:Q5292 }
Rudd, Thomas (DNB00) Cavendish, Henry (1732-1804) (DNB00)
action filter_type
action union
action find
entity Cavendish, Henry (1732-1804) (DNB00)
relation published in
action find
entity Rudd, Thomas (DNB00)
relation published in
type encyclopedia
{'OR': [['Cavendish, Henry (1732-1804) (DNB00)', 'published in', {'concept': 'encyclopedia'}], ['Rudd, Thomas (DNB00)', 'published in', {'concept': 'encyclopedia'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Cavendish,_Henry_(1732-1804)_(DNB00) property:published_in ?u } UNION { resource:Rudd,_Thomas_(DNB00) property:published_in ?u } } . ?u rdf:type ontology:encyclopedia }
[]
encyclopedia
Q15987216
SYSTEM
Dictionary of National Biography (1885-1900)
Q15987216
OR((Q19027774,P1433,c(Q5292)), (Q19115123,P1433,c(Q5292)))
action filter_type
action union
action find
entity Q19027774
relation P1433
action find
entity Q19115123
relation P1433
type Q5292
[ANSWER] contains Cavendish, Henry (1732-1804) (DNB00) or Rudd, Thomas (DNB00)
{'OR': [['Q19027774', 'P1433', {'concept': 'Q5292'}], ['Q19115123', 'P1433', {'concept': 'Q5292'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q19027774 property:P1433 ?u } UNION { resource:Q19115123 property:P1433 ?u } } . ?u rdf:type ontology:Q5292 }
Dictionary of National Biography (1885-1900)
Dictionary of National Biography (1885-1900) contains Cavendish, Henry (1732-1804) (DNB00) or Rudd, Thomas (DNB00)
Dictionary of National Biography (1885-1900)
action filter_type
action union
action find
entity Cavendish, Henry (1732-1804) (DNB00)
relation published in
action find
entity Rudd, Thomas (DNB00)
relation published in
type encyclopedia
{'OR': [['Cavendish, Henry (1732-1804) (DNB00)', 'published in', {'concept': 'encyclopedia'}], ['Rudd, Thomas (DNB00)', 'published in', {'concept': 'encyclopedia'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Cavendish,_Henry_(1732-1804)_(DNB00) property:published_in ?u } UNION { resource:Rudd,_Thomas_(DNB00) property:published_in ?u } } . ?u rdf:type ontology:encyclopedia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q19115123
P1433
Q5292
USER
How many encyclopedias were Rudd, Thomas (DNB00) published in ?
(Q19115123,P1433,c(Q5292))
action count
action filter_type
action find
entity Q19115123
relation P1433
type Q5292
['Q19115123', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { resource:Q19115123 property:P1433 ?m . ?m rdf:type ontology:Q5292 }
Rudd, Thomas (DNB00)
action count
action filter_type
action find
entity Rudd, Thomas (DNB00)
relation published in
type encyclopedia
['Rudd, Thomas (DNB00)', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { resource:Rudd,_Thomas_(DNB00) property:published_in ?m . ?m rdf:type ontology:encyclopedia }
[]
encyclopedia
SYSTEM
1
Q15987216
(Q19115123,P1433,c(Q5292))
action count
action filter_type
action find
entity Q19115123
relation P1433
type Q5292
[ANSWER]
['Q19115123', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { resource:Q19115123 property:P1433 ?m . ?m rdf:type ontology:Q5292 }
Dictionary of National Biography (1885-1900)
1
action count
action filter_type
action find
entity Rudd, Thomas (DNB00)
relation published in
type encyclopedia
['Rudd, Thomas (DNB00)', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { resource:Rudd,_Thomas_(DNB00) property:published_in ?m . ?m rdf:type ontology:encyclopedia }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19074780
P50
Q502895
USER
Who authored Nicholas of Meaux (DNB00) ?
(Q19074780,P50,c(Q502895))
action filter_type
action find
entity Q19074780
relation P50
type Q502895
['Q19074780', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q19074780 property:P50 ?o }
Nicholas of Meaux (DNB00)
action filter_type
action find
entity Nicholas of Meaux (DNB00)
relation author
type common name
['Nicholas of Meaux (DNB00)', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Nicholas_of_Meaux_(DNB00) property:author ?o }
[]
common name
Q15983946
SYSTEM
Alice Margaret Cooke
Q15983946
(Q19074780,P50,c(Q502895))
action filter_type
action find
entity Q19074780
relation P50
type Q502895
[ANSWER] authored Nicholas of Meaux (DNB00)
['Q19074780', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q19074780 property:P50 ?o }
Alice Margaret Cooke
Alice Margaret Cooke authored Nicholas of Meaux (DNB00)
Alice Margaret Cooke
action filter_type
action find
entity Nicholas of Meaux (DNB00)
relation author
type common name
['Nicholas of Meaux (DNB00)', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Nicholas_of_Meaux_(DNB00) property:author ?o }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18611967
Q502895
USER
And what about Meat Cereals?
(Q18611967,P50,c(Q502895))
action filter_type
action find
entity Q18611967
relation P50
type Q502895
['Q18611967', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q18611967 property:P50 ?r . ?r rdf:type ontology:Q502895 }
Meat Cereals
action filter_type
action find
entity Meat Cereals
relation author
type common name
['Meat Cereals', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Meat_Cereals property:author ?r . ?r rdf:type ontology:common_name }
[]
common name
Q285048
SYSTEM
Randall Munroe
Q285048
(Q18611967,P50,c(Q502895))
action filter_type
action find
entity Q18611967
relation P50
type Q502895
[ANSWER]
['Q18611967', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q18611967 property:P50 ?r . ?r rdf:type ontology:Q502895 }
Randall Munroe
Randall Munroe
action filter_type
action find
entity Meat Cereals
relation author
type common name
['Meat Cereals', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Meat_Cereals property:author ?r . ?r rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do atleast 2999 people know to play ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2999
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?k >= 2999 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2999
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?k >= 2999 ) }
[]
musical instrument common name
Q5994 Q8355
SYSTEM
piano, violin
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2999
Atleast 2999 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?k >= 2999 ) }
piano violin
Atleast 2999 people know about piano and violin
piano violin
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2999
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?k >= 2999 ) }
[]