Simple Question (Direct)
Simple Question
Q3374955
P26
Q502895
USER
Who is married to Paul Avery ?
(Q3374955,P26,c(Q502895))
action filter_type
action find
entity Q3374955
relation P26
type Q502895
['Q3374955', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q3374955 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Paul Avery
action filter_type
action find
entity Paul Avery
relation spouse
type common name
['Paul Avery', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Paul_Avery property:spouse ?d . ?d rdf:type ontology:common_name }
[]
common name
Q6760651
SYSTEM
Margo St. James
Q6760651
(Q3374955,P26,c(Q502895))
action filter_type
action find
entity Q3374955
relation P26
type Q502895
[ANSWER] is married to Paul Avery
['Q3374955', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q3374955 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Margo St. James
Margo St. James is married to Paul Avery
Margo St. James
action filter_type
action find
entity Paul Avery
relation spouse
type common name
['Paul Avery', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Paul_Avery property:spouse ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3374955
P106
Q12737077
USER
Which occupation is the profession of Paul Avery ?
(Q3374955,P106,c(Q12737077))
action filter_type
action find
entity Q3374955
relation P106
type Q12737077
['Q3374955', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3374955 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Paul Avery
action filter_type
action find
entity Paul Avery
relation occupation
type occupation
['Paul Avery', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Paul_Avery property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q1930187
SYSTEM
journalist
Q1930187
(Q3374955,P106,c(Q12737077))
action filter_type
action find
entity Q3374955
relation P106
type Q12737077
The [ANSWER] is the profession of Paul Avery
['Q3374955', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3374955 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
journalist
The journalist is the profession of Paul Avery
journalist
action filter_type
action find
entity Paul Avery
relation occupation
type occupation
['Paul Avery', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Paul_Avery property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q3374955
Q151885
USER
And which concept?
(Q3374955,P106,c(Q151885))
action filter_type
action find
entity Q3374955
relation P106
type Q151885
['Q3374955', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { resource:Q3374955 property:P106 ?b . ?b rdf:type ontology:Q151885 }
Paul Avery
action filter_type
action find
entity Paul Avery
relation occupation
type concept
['Paul Avery', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { resource:Paul_Avery property:occupation ?b . ?b rdf:type ontology:concept }
[]
concept
Q482980
SYSTEM
author
Q482980
(Q3374955,P106,c(Q151885))
action filter_type
action find
entity Q3374955
relation P106
type Q151885
[ANSWER]
['Q3374955', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { resource:Q3374955 property:P106 ?b . ?b rdf:type ontology:Q151885 }
author
author
action filter_type
action find
entity Paul Avery
relation occupation
type concept
['Paul Avery', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { resource:Paul_Avery property:occupation ?b . ?b rdf:type ontology:concept }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q482980 Q24467469
P106
Q502895
USER
Does Andreas Pichler have the profession as that concept ?
(Q24467469,P106,Q482980)
action is_in
entity Q24467469
action find
entity Q482980
relation P106
['Q24467469', 'P106', 'Q482980']
ASK WHERE { resource:Q482980 property:P106 resource:Q24467469 }
author Andreas Pichler
action is_in
entity Andreas Pichler
action find
entity author
relation occupation
['Andreas Pichler', 'occupation', 'author']
ASK WHERE { resource:author property:occupation resource:Andreas_Pichler }
[]
common name
SYSTEM
NO
(Q24467469,P106,Q482980)
action is_in
entity Q24467469
action find
entity Q482980
relation P106
[ANSWER]
['Q24467469', 'P106', 'Q482980']
ASK WHERE { resource:Q482980 property:P106 resource:Q24467469 }
No
action is_in
entity Andreas Pichler
action find
entity author
relation occupation
['Andreas Pichler', 'occupation', 'author']
ASK WHERE { resource:author property:occupation resource:Andreas_Pichler }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1476215
P425
Q9332 Q31629 Q151885
USER
How many concepts do more number of behaviors or types of sport belong to than human rights activist ?
(c(Q151885),P425,c(Q9332)|c(Q31629))
action count
action greater
action union
action find_tuple_counts
relation P425
type Q151885
type Q9332
action find_tuple_counts
relation P425
type Q151885
type Q31629
action count
action filter_multi_types
action find
entity Q1476215
relation P425
type Q9332
type Q31629
[{'concept': 'Q151885'}, 'P425', [{'concept': 'Q9332'}, {'concept': 'Q31629'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?u WHERE { { ?u property:P425 ?d . ?u rdf:type ontology:Q151885 . ?d rdf:type ontology:Q9332 } UNION { ?u property:P425 ?d . ?u rdf:type ontology:Q151885 . ?d rdf:type ontology:Q31629 } } GROUP BY ?u } . FILTER ( ?a > ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:Q9332 } UNION { ?n rdf:type ontology:Q31629 } } . resource:Q1476215 property:P425 ?n } } }
human rights activist
action count
action greater
action union
action find_tuple_counts
relation field of this occupation
type concept
type behavior
action find_tuple_counts
relation field of this occupation
type concept
type type of sport
action count
action filter_multi_types
action find
entity human rights activist
relation field of this occupation
type behavior
type type of sport
[{'concept': 'concept'}, 'field of this occupation', [{'concept': 'behavior'}, {'concept': 'type of sport'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?u WHERE { { ?u property:field_of_this_occupation ?d . ?u rdf:type ontology:concept . ?d rdf:type ontology:behavior } UNION { ?u property:field_of_this_occupation ?d . ?u rdf:type ontology:concept . ?d rdf:type ontology:type_of_sport } } GROUP BY ?u } . FILTER ( ?a > ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:behavior } UNION { ?n rdf:type ontology:type_of_sport } } . resource:human_rights_activist property:field_of_this_occupation ?n } } }
[]
behavior type of sport concept
SYSTEM
27
Q4621445 Q15472169 Q9394993 Q10370560 Q3303297 Q13382576 Q17010072 Q779458 Q2066131 Q11513337 Q26270618 Q27532776 Q21578283 Q21121588 Q3578589 Q455011 Q16004471 Q1413522 Q19801627 Q1714828 Q15709642 Q13472585 Q1344452 Q273283 Q27247215 Q15253558 Q18664049
(c(Q151885),P425,c(Q9332)|c(Q31629))
action count
action greater
action union
action find_tuple_counts
relation P425
type Q151885
type Q9332
action find_tuple_counts
relation P425
type Q151885
type Q31629
action count
action filter_multi_types
action find
entity Q1476215
relation P425
type Q9332
type Q31629
[ANSWER]
[{'concept': 'Q151885'}, 'P425', [{'concept': 'Q9332'}, {'concept': 'Q31629'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?u WHERE { { ?u property:P425 ?d . ?u rdf:type ontology:Q151885 . ?d rdf:type ontology:Q9332 } UNION { ?u property:P425 ?d . ?u rdf:type ontology:Q151885 . ?d rdf:type ontology:Q31629 } } GROUP BY ?u } . FILTER ( ?a > ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:Q9332 } UNION { ?n rdf:type ontology:Q31629 } } . resource:Q1476215 property:P425 ?n } } }
vigilante patron of the arts ice skater sertanista ironmaster rower militant ascetic sportsperson athletics competitor rowing person rowing umpire rowing official rowing coach environmentalist Shill kayaker impostor ski mountaineer hunter snowboarder philanthropist discoverer beggar confidence trickster activist ski-orienteer
27
action count
action greater
action union
action find_tuple_counts
relation field of this occupation
type concept
type behavior
action find_tuple_counts
relation field of this occupation
type concept
type type of sport
action count
action filter_multi_types
action find
entity human rights activist
relation field of this occupation
type behavior
type type of sport
[{'concept': 'concept'}, 'field of this occupation', [{'concept': 'behavior'}, {'concept': 'type of sport'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?u WHERE { { ?u property:field_of_this_occupation ?d . ?u rdf:type ontology:concept . ?d rdf:type ontology:behavior } UNION { ?u property:field_of_this_occupation ?d . ?u rdf:type ontology:concept . ?d rdf:type ontology:type_of_sport } } GROUP BY ?u } . FILTER ( ?a > ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:behavior } UNION { ?n rdf:type ontology:type_of_sport } } . resource:human_rights_activist property:field_of_this_occupation ?n } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q26219487
P425
Q9332 Q31629 Q151885
USER
And what about cross country runner?
(c(Q151885),P425,c(Q9332)|c(Q31629))
action count
action greater
action union
action find_tuple_counts
relation P425
type Q151885
type Q9332
action find_tuple_counts
relation P425
type Q151885
type Q31629
action count
action filter_multi_types
action find
entity Q26219487
relation P425
type Q9332
type Q31629
[{'concept': 'Q151885'}, 'P425', [{'concept': 'Q9332'}, {'concept': 'Q31629'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:Q9332 ) ( ontology:Q31629 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:Q26219487 property:P425 ?g . { { ?g rdf:type ontology:Q9332 } UNION { ?g rdf:type ontology:Q31629 } } } } . FILTER ( ?u > ?w ) }
cross country runner
action count
action greater
action union
action find_tuple_counts
relation field of this occupation
type concept
type behavior
action find_tuple_counts
relation field of this occupation
type concept
type type of sport
action count
action filter_multi_types
action find
entity cross country runner
relation field of this occupation
type behavior
type type of sport
[{'concept': 'concept'}, 'field of this occupation', [{'concept': 'behavior'}, {'concept': 'type of sport'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:behavior ) ( ontology:type_of_sport ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:cross_country_runner property:field_of_this_occupation ?g . { { ?g rdf:type ontology:behavior } UNION { ?g rdf:type ontology:type_of_sport } } } } . FILTER ( ?u > ?w ) }
[]
behavior type of sport concept
SYSTEM
27
Q4621445 Q15472169 Q9394993 Q10370560 Q3303297 Q13382576 Q17010072 Q779458 Q2066131 Q11513337 Q26270618 Q27532776 Q21578283 Q21121588 Q3578589 Q455011 Q16004471 Q1413522 Q19801627 Q1714828 Q15709642 Q13472585 Q1344452 Q273283 Q27247215 Q15253558 Q18664049
(c(Q151885),P425,c(Q9332)|c(Q31629))
action count
action greater
action union
action find_tuple_counts
relation P425
type Q151885
type Q9332
action find_tuple_counts
relation P425
type Q151885
type Q31629
action count
action filter_multi_types
action find
entity Q26219487
relation P425
type Q9332
type Q31629
[ANSWER]
[{'concept': 'Q151885'}, 'P425', [{'concept': 'Q9332'}, {'concept': 'Q31629'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:Q9332 ) ( ontology:Q31629 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:Q26219487 property:P425 ?g . { { ?g rdf:type ontology:Q9332 } UNION { ?g rdf:type ontology:Q31629 } } } } . FILTER ( ?u > ?w ) }
vigilante patron of the arts ice skater sertanista ironmaster rower militant ascetic sportsperson athletics competitor rowing person rowing umpire rowing official rowing coach environmentalist Shill kayaker impostor ski mountaineer hunter snowboarder philanthropist discoverer beggar confidence trickster activist ski-orienteer
27
action count
action greater
action union
action find_tuple_counts
relation field of this occupation
type concept
type behavior
action find_tuple_counts
relation field of this occupation
type concept
type type of sport
action count
action filter_multi_types
action find
entity cross country runner
relation field of this occupation
type behavior
type type of sport
[{'concept': 'concept'}, 'field of this occupation', [{'concept': 'behavior'}, {'concept': 'type of sport'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:behavior ) ( ontology:type_of_sport ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:cross_country_runner property:field_of_this_occupation ?g . { { ?g rdf:type ontology:behavior } UNION { ?g rdf:type ontology:type_of_sport } } } } . FILTER ( ?u > ?w ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6760651 Q3193008
P26
Q502895
USER
How many people are the spouse of Margo St. James or Karava ?
(c(Q502895),P26,Q6760651) (c(Q502895),P26,Q3193008)
action count
action union
action filter_type
action find_reverse
entity Q6760651
relation P26
type Q502895
action filter_type
action find_reverse
entity Q3193008
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q6760651'] [{'concept': 'Q502895'}, 'P26', 'Q3193008']
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { ?j rdf:type ontology:Q502895 . ?j property:P26 resource:Q6760651 } UNION { ?j property:P26 resource:Q3193008 . ?j rdf:type ontology:Q502895 } }
Margo St. James Karava
action count
action union
action filter_type
action find_reverse
entity Margo St. James
relation spouse
type common name
action filter_type
action find_reverse
entity Karava
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Margo St. James'] [{'concept': 'common name'}, 'spouse', 'Karava']
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { ?j rdf:type ontology:common_name . ?j property:spouse resource:Margo_St._James } UNION { ?j property:spouse resource:Karava . ?j rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q3374955 Q3339865
(c(Q502895),P26,Q6760651) (c(Q502895),P26,Q3193008)
action count
action union
action filter_type
action find_reverse
entity Q6760651
relation P26
type Q502895
action filter_type
action find_reverse
entity Q3193008
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q6760651'] [{'concept': 'Q502895'}, 'P26', 'Q3193008']
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { ?j rdf:type ontology:Q502895 . ?j property:P26 resource:Q6760651 } UNION { ?j property:P26 resource:Q3193008 . ?j rdf:type ontology:Q502895 } }
Paul Avery Nico F. Declercq
2
action count
action union
action filter_type
action find_reverse
entity Margo St. James
relation spouse
type common name
action filter_type
action find_reverse
entity Karava
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Margo St. James'] [{'concept': 'common name'}, 'spouse', 'Karava']
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { ?j rdf:type ontology:common_name . ?j property:spouse resource:Margo_St._James } UNION { ?j property:spouse resource:Karava . ?j rdf:type ontology:common_name } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q2612317
P138
Q151885 Q151885
USER
Which concepts come from more number of concepts than Milavce culture ?
(c(Q151885),P138,c(Q151885))
action greater
action find_tuple_counts
relation P138
type Q151885
type Q151885
action count
action filter_type
action find
entity Q2612317
relation P138
type Q151885
[{'concept': 'Q151885'}, 'P138', {'concept': 'Q151885'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?n ) WHERE { ?z property:P138 ?p . ?z rdf:type ontology:Q151885 . ?p rdf:type ontology:Q151885 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o rdf:type ontology:Q151885 . resource:Q2612317 property:P138 ?o } } . FILTER ( ?n > ?l ) }
Milavce culture
action greater
action find_tuple_counts
relation named after
type concept
type concept
action count
action filter_type
action find
entity Milavce culture
relation named after
type concept
[{'concept': 'concept'}, 'named after', {'concept': 'concept'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?n ) WHERE { ?z property:named_after ?p . ?z rdf:type ontology:concept . ?p rdf:type ontology:concept } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o rdf:type ontology:concept . resource:Milavce_culture property:named_after ?o } } . FILTER ( ?n > ?l ) }
[]
concept concept
Q775614 Q484179
SYSTEM
neofolk, folk metal
Q775614 Q484179
(c(Q151885),P138,c(Q151885))
action greater
action find_tuple_counts
relation P138
type Q151885
type Q151885
action count
action filter_type
action find
entity Q2612317
relation P138
type Q151885
[ANSWERS] come from more number of concepts than Milavce culture
[{'concept': 'Q151885'}, 'P138', {'concept': 'Q151885'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?n ) WHERE { ?z property:P138 ?p . ?z rdf:type ontology:Q151885 . ?p rdf:type ontology:Q151885 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o rdf:type ontology:Q151885 . resource:Q2612317 property:P138 ?o } } . FILTER ( ?n > ?l ) }
neofolk folk metal
Neofolk and folk metal come from more number of concepts than Milavce culture
neofolk folk metal
action greater
action find_tuple_counts
relation named after
type concept
type concept
action count
action filter_type
action find
entity Milavce culture
relation named after
type concept
[{'concept': 'concept'}, 'named after', {'concept': 'concept'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?n ) WHERE { ?z property:named_after ?p . ?z rdf:type ontology:concept . ?p rdf:type ontology:concept } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { ?o rdf:type ontology:concept . resource:Milavce_culture property:named_after ?o } } . FILTER ( ?n > ?l ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6682723
P136
Q2088357
USER
Do Los Falcon's have those concepts as genre ?
(Q6682723,P136,Q775614) (Q6682723,P136,Q484179)
action is_in
entity prev_answer
action find
entity Q6682723
relation P136
['Q6682723', 'P136', 'Q775614'] ['Q6682723', 'P136', 'Q484179']
ASK WHERE { resource:Q6682723 property:P136 ?x . VALUES ( ?x ) { ( resource:Q775614 ) ( resource:Q484179 ) } }
Los Falcon's
action is_in
entity prev_answer
action find
entity Los Falcon's
relation genre
["Los Falcon's", 'genre', 'neofolk'] ["Los Falcon's", 'genre', 'folk metal']
ASK WHERE { resource:Los_Falcon's property:genre ?x . VALUES ( ?x ) { ( resource:neofolk ) ( resource:folk_metal ) } }
[]
musical ensemble
SYSTEM
NO
(Q6682723,P136,Q775614) (Q6682723,P136,Q484179)
action is_in
entity prev_answer
action find
entity Q6682723
relation P136
[ANSWER]
['Q6682723', 'P136', 'Q775614'] ['Q6682723', 'P136', 'Q484179']
ASK WHERE { resource:Q6682723 property:P136 ?x . VALUES ( ?x ) { ( resource:Q775614 ) ( resource:Q484179 ) } }
No
action is_in
entity prev_answer
action find
entity Los Falcon's
relation genre
["Los Falcon's", 'genre', 'neofolk'] ["Los Falcon's", 'genre', 'folk metal']
ASK WHERE { resource:Los_Falcon's property:genre ?x . VALUES ( ?x ) { ( resource:neofolk ) ( resource:folk_metal ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P138
Q151885 Q14524493
USER
Which terrains have max number of concepts as their namesake ?
(c(Q14524493),P138,c(Q151885))
action argmax
action find_tuple_counts
relation P138
type Q14524493
type Q151885
[{'concept': 'Q14524493'}, 'P138', {'concept': 'Q151885'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?a ) { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?f ) WHERE { ?n property:P138 ?r . ?n rdf:type ontology:Q14524493 . ?r rdf:type ontology:Q151885 } GROUP BY ?n } } . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?k ) WHERE { ?i property:P138 ?o . ?i rdf:type ontology:Q14524493 . ?o rdf:type ontology:Q151885 } GROUP BY ?i } . FILTER ( ?k = ?a ) }
action argmax
action find_tuple_counts
relation named after
type terrain
type concept
[{'concept': 'terrain'}, 'named after', {'concept': 'concept'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?a ) { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?f ) WHERE { ?n property:named_after ?r . ?n rdf:type ontology:terrain . ?r rdf:type ontology:concept } GROUP BY ?n } } . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?k ) WHERE { ?i property:named_after ?o . ?i rdf:type ontology:terrain . ?o rdf:type ontology:concept } GROUP BY ?i } . FILTER ( ?k = ?a ) }
[]
concept terrain
Q1950626
SYSTEM
Mount POW/MIA
Q1950626
(c(Q14524493),P138,c(Q151885))
action argmax
action find_tuple_counts
relation P138
type Q14524493
type Q151885
[ANSWER] have max number of concepts as their namesake
[{'concept': 'Q14524493'}, 'P138', {'concept': 'Q151885'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?a ) { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?f ) WHERE { ?n property:P138 ?r . ?n rdf:type ontology:Q14524493 . ?r rdf:type ontology:Q151885 } GROUP BY ?n } } . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?k ) WHERE { ?i property:P138 ?o . ?i rdf:type ontology:Q14524493 . ?o rdf:type ontology:Q151885 } GROUP BY ?i } . FILTER ( ?k = ?a ) }
Mount POW/MIA
Mount POW/MIA have max number of concepts as their namesake
Mount POW/MIA
action argmax
action find_tuple_counts
relation named after
type terrain
type concept
[{'concept': 'terrain'}, 'named after', {'concept': 'concept'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?a ) { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?f ) WHERE { ?n property:named_after ?r . ?n rdf:type ontology:terrain . ?r rdf:type ontology:concept } GROUP BY ?n } } . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?k ) WHERE { ?i property:named_after ?o . ?i rdf:type ontology:terrain . ?o rdf:type ontology:concept } GROUP BY ?i } . FILTER ( ?k = ?a ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q1048835 Q271669 Q151885
USER
How many concepts have their location as atleast 1 political territories or landforms ?
(c(Q151885),P706,c(Q1048835)|c(Q271669))
action count
action atleast
action union
action find_tuple_counts
relation P706
type Q151885
type Q1048835
action find_tuple_counts
relation P706
type Q151885
type Q271669
value 1
[{'concept': 'Q151885'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?q ) WHERE { { ?y rdf:type ontology:Q151885 . ?t rdf:type ontology:Q1048835 . ?y property:P706 ?t } UNION { ?y property:P706 ?t . ?y rdf:type ontology:Q151885 . ?t rdf:type ontology:Q271669 } } GROUP BY ?y } . FILTER ( ?q >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation located on terrain feature
type concept
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type concept
type landform
value 1
[{'concept': 'concept'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'landform'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?q ) WHERE { { ?y rdf:type ontology:concept . ?t rdf:type ontology:political_territorial_entity . ?y property:located_on_terrain_feature ?t } UNION { ?y property:located_on_terrain_feature ?t . ?y rdf:type ontology:concept . ?t rdf:type ontology:landform } } GROUP BY ?y } . FILTER ( ?q >= 1 ) }
[]
political territorial entity landform concept
SYSTEM
9
Q13409799 Q1049966 Q2624476 Q1090851 Q134178 Q1362485 Q2666408 Q1241067 Q611017
(c(Q151885),P706,c(Q1048835)|c(Q271669))
action count
action atleast
action union
action find_tuple_counts
relation P706
type Q151885
type Q1048835
action find_tuple_counts
relation P706
type Q151885
type Q271669
value 1
[ANSWER]
[{'concept': 'Q151885'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?q ) WHERE { { ?y rdf:type ontology:Q151885 . ?t rdf:type ontology:Q1048835 . ?y property:P706 ?t } UNION { ?y property:P706 ?t . ?y rdf:type ontology:Q151885 . ?t rdf:type ontology:Q271669 } } GROUP BY ?y } . FILTER ( ?q >= 1 ) }
Argaric culture Castro culture Marajoara culture Châtelperronian Minoan civilization Ertebølle culture Asturian culture Old Europe Lusatian culture
9
action count
action atleast
action union
action find_tuple_counts
relation located on terrain feature
type concept
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type concept
type landform
value 1
[{'concept': 'concept'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'landform'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?q ) WHERE { { ?y rdf:type ontology:concept . ?t rdf:type ontology:political_territorial_entity . ?y property:located_on_terrain_feature ?t } UNION { ?y property:located_on_terrain_feature ?t . ?y rdf:type ontology:concept . ?t rdf:type ontology:landform } } GROUP BY ?y } . FILTER ( ?q >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3374955
P20
Q271669
USER
Where did the demise of Paul Avery occur ?
(Q3374955,P20,c(Q271669))
action filter_type
action find
entity Q3374955
relation P20
type Q271669
['Q3374955', 'P20', {'concept': 'Q271669'}]
SELECT DISTINCT ?y WHERE { resource:Q3374955 property:P20 ?y . ?y rdf:type ontology:Q271669 }
Paul Avery
action filter_type
action find
entity Paul Avery
relation place of death
type landform
['Paul Avery', 'place of death', {'concept': 'landform'}]
SELECT DISTINCT ?y WHERE { resource:Paul_Avery property:place_of_death ?y . ?y rdf:type ontology:landform }
[]
landform
Q1972381
SYSTEM
Orcas Island
Q1972381
(Q3374955,P20,c(Q271669))
action filter_type
action find
entity Q3374955
relation P20
type Q271669
The demise of Paul Avery occurred on [ANSWER]
['Q3374955', 'P20', {'concept': 'Q271669'}]
SELECT DISTINCT ?y WHERE { resource:Q3374955 property:P20 ?y . ?y rdf:type ontology:Q271669 }
Orcas Island
The demise of Paul Avery occurred on Orcas Island
Orcas Island
action filter_type
action find
entity Paul Avery
relation place of death
type landform
['Paul Avery', 'place of death', {'concept': 'landform'}]
SELECT DISTINCT ?y WHERE { resource:Paul_Avery property:place_of_death ?y . ?y rdf:type ontology:landform }
[]